| |
|
| java.lang.Object org.apache.roller.util.cache.CachedContent
CachedContent | public class CachedContent implements Serializable(Code) | | A utility class for storing cached content written to a java.io.Writer.
|
DEFAULT_SIZE | final public static int DEFAULT_SIZE(Code) | | |
CachedContent | public CachedContent(int size)(Code) | | |
CachedContent | public CachedContent(int size, String contentType)(Code) | | |
close | public void close() throws IOException(Code) | | Close this CachedContent from further writing.
|
flush | public void flush()(Code) | | Called to flush any output in the cached Writer to
the cached content for more permanent storage.
throws: IllegalStateException - if calling flush() after a close() |
getContent | public byte[] getContent()(Code) | | Get the content cached in this object as a byte array. If you convert
this back to a string yourself, be sure to re-encode in "UTF-8".
NOTE: the content is only a representation of the data written to the
enclosed Writer up until the last call to flush().
|
getContentAsString | public String getContentAsString()(Code) | | Get the content cached in this object as a String.
NOTE: the content is only a representation of the data written to the
enclosed Writer up until the last call to flush().
|
|
|
|