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 TypeMethodDescriptionvoid
delete()
Deletes the font cache from the file-system.private File
getCacheFile
(boolean forWriting) load()
Loads the font cache into memory from the given file.void
save()
Serializes the font cache to file.void
setCacheFile
(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:FontCacheManager
Loads the font cache into memory from the given file.- Specified by:
load
in interfaceFontCacheManager
- Returns:
- the de-serialized font cache
-
save
Description copied from interface:FontCacheManager
Serializes the font cache to file.- Specified by:
save
in interfaceFontCacheManager
- Throws:
FOPException
- if an error occurs serializing the font cache
-
delete
Description copied from interface:FontCacheManager
Deletes the font cache from the file-system.- Specified by:
delete
in interfaceFontCacheManager
- Throws:
FOPException
- if an error occurs deleting the font cache
-
getCacheFile
-
setCacheFile
Description copied from interface:FontCacheManager
Sets the font cache file given the URI pointing to the file.- Specified by:
setCacheFile
in interfaceFontCacheManager
- Parameters:
fontCacheURI
- the font cache URI
-