public class RtfMemoryCache extends Object implements RtfDataCache
Modifier and Type | Field and Description |
---|---|
private 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 |
---|---|
OutputStream |
getOutputStream()
Gets the ByteArrayOutputStream.
|
void |
writeTo(OutputStream target)
Writes the content of the ByteArrayOutputStream into the OutputStream.
|
private ByteArrayOutputStream data
public OutputStream getOutputStream()
getOutputStream
in interface RtfDataCache
public void writeTo(OutputStream target) throws IOException
writeTo
in interface RtfDataCache
target
- The OutputStream to write the content into.IOException
- If an error occurs reading/writing.