public class RtfEfficientMemoryCache extends java.lang.Object implements RtfDataCache
RtfMemoryCache
.Modifier and Type | Field and Description |
---|---|
private RtfByteArrayBuffer |
bab
The buffer for the rtf document data.
|
CACHE_DISK, CACHE_MEMORY, CACHE_MEMORY_EFFICIENT
Constructor and Description |
---|
RtfEfficientMemoryCache()
Constructs a RtfMemoryCache.
|
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
getOutputStream()
Gets the OutputStream.
|
void |
writeTo(java.io.OutputStream target)
Writes the content of the buffer into the OutputStream.
|
private final RtfByteArrayBuffer bab
public RtfEfficientMemoryCache()
public java.io.OutputStream getOutputStream()
getOutputStream
in interface RtfDataCache
public void writeTo(java.io.OutputStream target) throws java.io.IOException
writeTo
in interface RtfDataCache
target
- The OutputStream to write the content into.java.io.IOException
- If an error occurs reading/writing.