|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.document.output.RtfDiskCache
The RtfFileCache is a RtfDataCache that uses a temporary file to store the rtf document data. Not so fast, but doesn't use any memory (just disk space).
Field Summary | |
private BufferedOutputStream |
data
The BufferedOutputStream that stores the cache data. |
private File |
tempFile
The temporary file to store the data in. |
Fields inherited from interface com.lowagie.text.rtf.document.output.RtfDataCache |
CACHE_DISK, CACHE_MEMORY |
Constructor Summary | |
RtfDiskCache()
Constructs a RtfFileCache. |
Method Summary | |
OutputStream |
getOutputStream()
Gets the BufferedOutputStream to write to. |
void |
writeTo(OutputStream target)
Writes the content of the temporary file into the OutputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private BufferedOutputStream data
private File tempFile
Constructor Detail |
public RtfDiskCache() throws IOException
IOException
- If the temporary file could not be created.Method Detail |
public OutputStream getOutputStream()
getOutputStream
in interface RtfDataCache
public void writeTo(OutputStream target) throws IOException
writeTo
in interface RtfDataCache
target
- The OutputStream to write the content into.
IOException
- If an error occurs reading/writing.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |