uPortal 2.4.1
API Documentation

org.jasig.portal.serialize
Class CachingOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.jasig.portal.serialize.CachingOutputStream
All Implemented Interfaces:
CharacterCachingWriter

public class CachingOutputStream
extends java.io.OutputStream
implements CharacterCachingWriter


Constructor Summary
CachingOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 java.lang.String getCache(java.lang.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingOutputStream

public CachingOutputStream(java.io.OutputStream out)
Method Detail

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

uPortal 2.4.1
API Documentation