|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.pdf.StreamCacheFactory
This class is serves as a factory from
| Constructor Summary | |
StreamCacheFactory(boolean cacheToFile)
Creates a new StreamCacheFactory. |
|
| Method Summary | |
StreamCache |
createStreamCache()
Get the correct implementation (based on cacheToFile) of StreamCache. |
StreamCache |
createStreamCache(int hintSize)
Get the correct implementation (based on cacheToFile) of StreamCache. |
boolean |
getCacheToFile()
Get the value of the global cacheToFile flag. |
static StreamCacheFactory |
getInstance()
Returns an instance of a StreamCacheFactory depending on the default setting for cacheToFile. |
static StreamCacheFactory |
getInstance(boolean cacheToFile)
Returns an instance of a StreamCacheFactory with the requested features. |
static void |
setDefaultCacheToFile(boolean cacheToFile)
Sets the global default for cacheToFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StreamCacheFactory(boolean cacheToFile)
cacheToFile - True if file shall be cached using a temporary file| Method Detail |
public static StreamCacheFactory getInstance(boolean cacheToFile)
cacheToFile - True if file shall be cached using a temporary file
public static StreamCacheFactory getInstance()
public static void setDefaultCacheToFile(boolean cacheToFile)
cacheToFile - True if stream caches should be held in files.
public StreamCache createStreamCache()
throws java.io.IOException
java.io.IOException - if there is an IO error
public StreamCache createStreamCache(int hintSize)
throws java.io.IOException
hintSize - a hint about the approximate expected size of the buffer
java.io.IOException - if there is an IO errorpublic boolean getCacheToFile()
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||