public class CacheWriter extends Writer
| Constructor and Description |
|---|
CacheWriter(Writer out,
CacheEntry entryBase,
PageCache cache,
String cacheKey,
boolean persistData)
Creates a new CacheWriter with the specified delegate stream and
caching configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Writer |
append(char c) |
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence csq,
int start,
int end) |
void |
close()
Creates and stores a
CacheEntry in the PageCache. |
void |
flush() |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
public CacheWriter(Writer out, CacheEntry entryBase, PageCache cache, String cacheKey, boolean persistData)
out - The output stream to delegate cache calls to. If null no delegation is performed.entryBase - The base CacheEntry to store, the content field will be overwritten before caching.cache - The PageCache to use to store the data, may not be null.cacheKey - The key to store the data with, may not be null.persistData - If the data should be persisted by the store.public void close()
throws IOException
CacheEntry in the PageCache.close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionOutputStream.close()public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionOutputStream.flush()public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic Writer append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionCopyright © 2016 Jasig. All Rights Reserved.