com.groupdocs.viewer.handler.cache

Interface ICacheDataHandler



  • public interface ICacheDataHandler

    Exposes members for caching rendering results.

    • Method Detail

      • clearCache

        void clearCache()
        Clears all files from cache.
      • clearCache

        void clearCache(String guid)
        Clears cache of the specified document.
        Parameters:
        guid - The file unique identifier, full path for local storage e.g. c:\\storage\\document.txt, relative path e.g document.txt, url e.g. http://site.com/document.txt.
      • exists

        boolean exists(CacheFileDescription cachedPageDescription)
        Checks whether specified file description existed in cache.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the boolean
      • getFilePath

        String getFilePath(CacheFileDescription cacheFileDescription)
        Gets the path to the cached document.
        Parameters:
        cacheFileDescription - The cached document description
        Returns:
        a String object.
      • getHtmlPageResources

        List<CachedPageResourceDescription> getHtmlPageResources(CachedPageDescription cachedPageDescription)
        Gets the HTML page resources descriptions.
        Parameters:
        cachedPageDescription - The cached page description
        Returns:
        List of page resources descriptions
      • getHtmlPageResourcesFolder

        String getHtmlPageResourcesFolder(CachedPageDescription cachedPageDescription)
        Gets the HTML page resources folder path.
        Parameters:
        cachedPageDescription - The cached page description
        Returns:
        a String object.
      • getLastModificationDate

        Date getLastModificationDate(CacheFileDescription cachedPageDescription)
        Gets the last modification date.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the last modification date
      • getOutputSaveStream

        OutputStream getOutputSaveStream(CacheFileDescription cachedPageDescription)
        Gets the output save stream.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the output save stream