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