public class RtfDiskCache extends Object implements RtfDataCache
CACHE_DISK, CACHE_MEMORY, CACHE_MEMORY_EFFICIENT| Constructor and Description |
|---|
RtfDiskCache()
Constructs a RtfFileCache.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Gets the BufferedOutputStream to write to.
|
void |
writeTo(OutputStream target)
Writes the content of the temporary file into the OutputStream.
|
public RtfDiskCache()
throws IOException
IOException - If the temporary file could not be created.public OutputStream getOutputStream()
getOutputStream in interface RtfDataCachepublic void writeTo(OutputStream target) throws IOException
writeTo in interface RtfDataCachetarget - The OutputStream to write the content into.IOException - If an error occurs reading/writing.Copyright © 2015. All rights reserved.