Package org.apache.fop.fonts
Class FontCacheManagerFactory.FontCacheManagerImpl
java.lang.Object
org.apache.fop.fonts.FontCacheManagerFactory.FontCacheManagerImpl
- All Implemented Interfaces:
FontCacheManager
- Enclosing class:
FontCacheManagerFactory
private static final class FontCacheManagerFactory.FontCacheManagerImpl
extends Object
implements FontCacheManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes the font cache from the file-system.private FilegetCacheFile(boolean forWriting) load()Loads the font cache into memory from the given file.voidsave()Serializes the font cache to file.voidsetCacheFile(URI fontCacheURI) Sets the font cache file given the URI pointing to the file.
-
Field Details
-
cacheFile
Provides a font cache file path -
fontCache
-
-
Constructor Details
-
FontCacheManagerImpl
private FontCacheManagerImpl()
-
-
Method Details
-
load
Description copied from interface:FontCacheManagerLoads the font cache into memory from the given file.- Specified by:
loadin interfaceFontCacheManager- Returns:
- the de-serialized font cache
-
save
Description copied from interface:FontCacheManagerSerializes the font cache to file.- Specified by:
savein interfaceFontCacheManager- Throws:
FOPException- if an error occurs serializing the font cache
-
delete
Description copied from interface:FontCacheManagerDeletes the font cache from the file-system.- Specified by:
deletein interfaceFontCacheManager- Throws:
FOPException- if an error occurs deleting the font cache
-
getCacheFile
-
setCacheFile
Description copied from interface:FontCacheManagerSets the font cache file given the URI pointing to the file.- Specified by:
setCacheFilein interfaceFontCacheManager- Parameters:
fontCacheURI- the font cache URI
-