Class FontCacheManagerFactory.FontCacheManagerImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File cacheFile
      Provides a font cache file path
      private FontCache fontCache  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Deletes the font cache from the file-system.
      private java.io.File getCacheFile​(boolean forWriting)  
      FontCache load()
      Loads the font cache into memory from the given file.
      void save()
      Serializes the font cache to file.
      void setCacheFile​(java.net.URI fontCacheURI)
      Sets the font cache file given the URI pointing to the file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cacheFile

        private java.io.File cacheFile
        Provides a font cache file path
    • Constructor Detail

      • FontCacheManagerImpl

        private FontCacheManagerImpl()
    • Method Detail

      • load

        public FontCache load()
        Description copied from interface: FontCacheManager
        Loads the font cache into memory from the given file.
        Specified by:
        load in interface FontCacheManager
        Returns:
        the de-serialized font cache
      • getCacheFile

        private java.io.File getCacheFile​(boolean forWriting)
      • setCacheFile

        public void setCacheFile​(java.net.URI fontCacheURI)
        Description copied from interface: FontCacheManager
        Sets the font cache file given the URI pointing to the file.
        Specified by:
        setCacheFile in interface FontCacheManager
        Parameters:
        fontCacheURI - the font cache URI