Interface RtfDataCache
- All Known Implementing Classes:
RtfDiskCache
,RtfEfficientMemoryCache
,RtfMemoryCache
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 3373 2008-05-12 16:21:24Z xlv $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constant for caching to the disk.static final int
Constant for caching into memory.static final int
Constant for caching efficiently into memory. -
Method Summary
Modifier and TypeMethodDescriptionGet the OutputStream that the RtfDocument can write to.void
writeTo
(OutputStream target) Write the content of the cache into the OutputStream.
-
Field Details
-
CACHE_MEMORY_EFFICIENT
static final int CACHE_MEMORY_EFFICIENTConstant for caching efficiently into memory.- See Also:
-
CACHE_MEMORY
static final int CACHE_MEMORYConstant for caching into memory.- See Also:
-
CACHE_DISK
static final int CACHE_DISKConstant for caching to the disk.- See Also:
-
-
Method Details
-
getOutputStream
OutputStream getOutputStream()Get the OutputStream that the RtfDocument can write to.- Returns:
- The OutputStream the RtfDocument can use.
-
writeTo
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.
-