com.lowagie.text.rtf.document.output

Class RtfEfficientMemoryCache

public class RtfEfficientMemoryCache extends Object implements RtfDataCache

The RtfEfficientMemoryCache is an RtfDataCache that keeps the whole rtf document data in memory. More efficient than RtfMemoryCache.

Version: $Id: RtfEfficientMemoryCache.java 3255 2008-04-14 18:33:30Z xlv $

Author: Thomas Bickel (tmb99@inode.at)

Field Summary
RtfByteArrayBufferbab
The buffer for the rtf document data.
Constructor Summary
RtfEfficientMemoryCache()
Constructs a RtfMemoryCache.
Method Summary
OutputStreamgetOutputStream()
Gets the OutputStream.
voidwriteTo(OutputStream target)
Writes the content of the buffer into the OutputStream.

Field Detail

bab

private final RtfByteArrayBuffer bab
The buffer for the rtf document data.

Constructor Detail

RtfEfficientMemoryCache

public RtfEfficientMemoryCache()
Constructs a RtfMemoryCache.

Method Detail

getOutputStream

public OutputStream getOutputStream()
Gets the OutputStream.

writeTo

public void writeTo(OutputStream target)
Writes the content of the buffer into the OutputStream.