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 java.lang.Object implements FontCacheManager
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFontCacheManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes the font cache from the file-system.private java.io.FilegetCacheFile(boolean forWriting)FontCacheload()Loads the font cache into memory from the given file.voidsave()Serializes the font cache to file.voidsetCacheFile(java.net.URI fontCacheURI)Sets the font cache file given the URI pointing to the file.
-
-
-
Field Detail
-
cacheFile
private java.io.File cacheFile
Provides a font cache file path
-
fontCache
private FontCache fontCache
-
-
Method Detail
-
load
public FontCache 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
public void save() throws FOPExceptionDescription copied from interface:FontCacheManagerSerializes the font cache to file.- Specified by:
savein interfaceFontCacheManager- Throws:
FOPException- if an error occurs serializing the font cache
-
delete
public void delete() throws FOPExceptionDescription 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
private java.io.File getCacheFile(boolean forWriting)
-
setCacheFile
public void setCacheFile(java.net.URI fontCacheURI)
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
-
-