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 private
FontCacheManagerImpl()
-
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.
-
-
-
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:FontCacheManager
Loads the font cache into memory from the given file.- Specified by:
load
in interfaceFontCacheManager
- Returns:
- the de-serialized font cache
-
save
public void save() throws FOPException
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
public void delete() throws FOPException
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
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 interfaceFontCacheManager
- Parameters:
fontCacheURI
- the font cache URI
-
-