com.lowagie.text.rtf.document.output

Interface RtfDataCache

public interface RtfDataCache

The RtfDataCache interface must be implemented by classes wishing to act as caches for the rtf document data.

Version: $Id: RtfDataCache.java 2776 2007-05-23 20:01:40Z hallm $

Author: Mark Hall (mhall@edu.uni-klu.ac.at) Thomas Bickel (tmb99@inode.at)

Field Summary
static intCACHE_DISK
Constant for caching to the disk.
static intCACHE_MEMORY
Constant for caching into memory.
static intCACHE_MEMORY_EFFICIENT
Constant for caching efficently into memory.
Method Summary
OutputStreamgetOutputStream()
Get the OutputStream that the RtfDocument can write to.
voidwriteTo(OutputStream target)
Write the content of the cache into the OutputStream.

Field Detail

CACHE_DISK

public static final int CACHE_DISK
Constant for caching to the disk.

CACHE_MEMORY

public static final int CACHE_MEMORY
Constant for caching into memory.

CACHE_MEMORY_EFFICIENT

public static final int CACHE_MEMORY_EFFICIENT
Constant for caching efficently into memory.

Method Detail

getOutputStream

public OutputStream getOutputStream()
Get the OutputStream that the RtfDocument can write to.

Returns: The OutputStream the RtfDocument can use.

writeTo

public void writeTo(OutputStream target)
Write the content of the cache into the OutputStream.

Parameters: target The OutputStream to write the content into.

Throws: IOException If an error occurs reading/writing.