Class RtfEfficientMemoryCache
java.lang.Object
com.lowagie.text.rtf.document.output.RtfEfficientMemoryCache
- All Implemented Interfaces:
RtfDataCache
The RtfEfficientMemoryCache is an RtfDataCache that keeps the whole rtf document
data in memory.
More efficient than
RtfMemoryCache
.- Version:
- $Id: RtfEfficientMemoryCache.java 3255 2008-04-14 18:33:30Z xlv $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RtfByteArrayBuffer
The buffer for the rtf document data.Fields inherited from interface com.lowagie.text.rtf.document.output.RtfDataCache
CACHE_DISK, CACHE_MEMORY, CACHE_MEMORY_EFFICIENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the OutputStream.void
writeTo
(OutputStream target) Writes the content of the buffer into the OutputStream.
-
Field Details
-
bab
The buffer for the rtf document data.
-
-
Constructor Details
-
RtfEfficientMemoryCache
public RtfEfficientMemoryCache()Constructs a RtfMemoryCache.
-
-
Method Details
-
getOutputStream
Gets the OutputStream.- Specified by:
getOutputStream
in interfaceRtfDataCache
- Returns:
- The OutputStream the RtfDocument can use.
-
writeTo
Writes the content of the buffer into the OutputStream.- Specified by:
writeTo
in interfaceRtfDataCache
- Parameters:
target
- The OutputStream to write the content into.- Throws:
IOException
- If an error occurs reading/writing.
-