Class RtfDiskCache
- java.lang.Object
-
- com.lowagie.text.rtf.document.output.RtfDiskCache
-
- All Implemented Interfaces:
RtfDataCache
public class RtfDiskCache extends java.lang.Object implements RtfDataCache
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).- Version:
- $Revision: 3373 $
- Author:
- Mark Hall (Mark.Hall@mail.room3b.eu)
-
-
Field Summary
-
Fields inherited from interface com.lowagie.text.rtf.document.output.RtfDataCache
CACHE_DISK, CACHE_MEMORY, CACHE_MEMORY_EFFICIENT
-
-
Constructor Summary
Constructors Constructor Description RtfDiskCache()Constructs a RtfFileCache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStreamgetOutputStream()Gets the BufferedOutputStream to write to.voidwriteTo(java.io.OutputStream target)Writes the content of the temporary file into the OutputStream.
-
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream()
Gets the BufferedOutputStream to write to.- Specified by:
getOutputStreamin interfaceRtfDataCache- Returns:
- The OutputStream the RtfDocument can use.
-
writeTo
public void writeTo(java.io.OutputStream target) throws java.io.IOExceptionWrites the content of the temporary file into the OutputStream.- Specified by:
writeToin interfaceRtfDataCache- Parameters:
target- The OutputStream to write the content into.- Throws:
java.io.IOException- If an error occurs reading/writing.
-
-