|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.document.output.RtfMemoryCache
public class RtfMemoryCache
The RtfMemoryCache is an RtfDataCache that keeps the whole rtf document data in memory. Fast but memory intensive.
Field Summary | |
---|---|
private java.io.ByteArrayOutputStream |
data
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 | |
---|---|
RtfMemoryCache()
Constructs a RtfMemoryCache. |
Method Summary | |
---|---|
java.io.OutputStream |
getOutputStream()
Gets the ByteArrayOutputStream. |
void |
writeTo(java.io.OutputStream target)
Writes the content of the ByteArrayOutputStream into the OutputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.ByteArrayOutputStream data
Constructor Detail |
---|
public RtfMemoryCache()
Method Detail |
---|
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.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |