com.groupdocs.viewer.handler.cache

Interface ICacheDataHandler



  • public interface ICacheDataHandler

    Exposes members for caching rendering results.

    Version:
    17.5.0
    Author:
    GroupDocs.Viewer Team
    • Method Detail

      • exists

        boolean exists(CacheFileDescription cachedPageDescription)
                       throws Exception
        Checks whether specified file description existed in cache.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the boolean
        Throws:
        Exception - if any.
      • getInputStream

        InputStream getInputStream(CacheFileDescription cachedPageDescription)
                                   throws Exception
        Gets the input stream.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the input stream
        Throws:
        Exception - if any.
      • getOutputSaveStream

        OutputStream getOutputSaveStream(CacheFileDescription cachedPageDescription)
                                         throws Exception
        Gets the output save stream.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the output save stream
        Throws:
        Exception - if any.
      • getLastModificationDate

        Date getLastModificationDate(CacheFileDescription cachedPageDescription)
                                     throws Exception
        Gets the last modification date.
        Parameters:
        cachedPageDescription - The cache file description.
        Returns:
        the last modification date
        Throws:
        Exception - if any.
      • getHtmlPageResourcesFolder

        String getHtmlPageResourcesFolder(CachedPageDescription cachedPageDescription)
                                          throws Exception
        Gets the HTML page resources folder path.
        Parameters:
        cachedPageDescription - The cached page description
        Returns:
        a String object.
        Throws:
        Exception - if any.
      • getFilePath

        String getFilePath(CacheFileDescription cacheFileDescription)
                           throws Exception
        Gets the path to the cached document.
        Parameters:
        cacheFileDescription - The cached document description
        Returns:
        a String object.
        Throws:
        Exception - if any.
      • clearCache

        void clearCache(long olderThan)
                        throws Exception
        Clears cache.
        Parameters:
        olderThan - Clear cache older than the time interval starting from now.
        Throws:
        Exception - if any.