org.jasig.portal.serialize
Class CachingOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.jasig.portal.serialize.CachingOutputStream
All Implemented Interfaces:
Closeable, Flushable, CharacterCachingWriter

public class CachingOutputStream
extends OutputStream
implements CharacterCachingWriter


Constructor Summary
CachingOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 String getCache(String encoding)
           
 boolean startCaching()
           
 boolean stopCaching()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingOutputStream

public CachingOutputStream(OutputStream out)
Method Detail

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.