com.groupdocs.viewer.handler.cache

Interface ICacheDataHandler



  • public interface ICacheDataHandler

    Exposes members for caching rendering results.

    • 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
      • 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
      • getLastModificationDate

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

        String getHtmlPageResourcesFolder(CachedPageDescription cachedPageDescription)
                                          throws Exception
        Gets the HTML page resources folder path.
        Parameters:
        cachedPageDescription - The cached page description
        Throws:
        Exception
      • clearCache

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