org.jasig.portal.serialize
Class CachingOutputStream
java.lang.Object
java.io.OutputStream
org.jasig.portal.serialize.CachingOutputStream
- All Implemented Interfaces:
- Closeable, Flushable, CharacterCachingWriter
public class CachingOutputStream
- extends OutputStream
- implements CharacterCachingWriter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingOutputStream
public CachingOutputStream(OutputStream out)
startCaching
public boolean startCaching()
throws IOException
- Specified by:
startCaching in interface CharacterCachingWriter
- Throws:
IOException
getCache
public String getCache(String encoding)
throws UnsupportedEncodingException,
IOException
- Specified by:
getCache in interface CharacterCachingWriter
- Throws:
UnsupportedEncodingException
IOException
stopCaching
public boolean stopCaching()
- Specified by:
stopCaching in interface CharacterCachingWriter
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Specified by:
flush in interface CharacterCachingWriter- Overrides:
flush in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
Copyright © 2010 Jasig. All Rights Reserved.