public class RtfMemoryCache extends java.lang.Object implements RtfDataCache
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
data
The buffer for the rtf document data.
|
CACHE_DISK, CACHE_MEMORY, CACHE_MEMORY_EFFICIENT
Constructor and Description |
---|
RtfMemoryCache()
Constructs a RtfMemoryCache.
|
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
getOutputStream()
Gets the ByteArrayOutputStream.
|
void |
writeTo(java.io.OutputStream target)
Writes the content of the ByteArrayOutputStream into the OutputStream.
|
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.