public class RtfEfficientMemoryCache extends 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 |
|---|---|
OutputStream |
getOutputStream()
Gets the OutputStream.
|
void |
writeTo(OutputStream target)
Writes the content of the buffer into the OutputStream.
|
private final RtfByteArrayBuffer bab
public RtfEfficientMemoryCache()
public OutputStream getOutputStream()
getOutputStream in interface RtfDataCachepublic void writeTo(OutputStream target) throws IOException
writeTo in interface RtfDataCachetarget - The OutputStream to write the content into.IOException - If an error occurs reading/writing.