uPortal 2.4.1
API Documentation

org.jasig.portal.serialize
Class CachingWriter

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

public class CachingWriter
extends java.io.Writer
implements CharacterCachingWriter


Constructor Summary
CachingWriter(java.io.Writer out)
           
 
Method Summary
 void close()
           
 void flush()
           
 java.lang.String getCache(java.lang.String encoding)
           
 boolean startCaching()
           
 boolean stopCaching()
           
 void write(char[] c)
           
 void write(char[] c, int off, int len)
           
 void write(int c)
           
 void write(java.lang.String str)
           
 void write(java.lang.String str, int off, int len)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingWriter

public CachingWriter(java.io.Writer 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.IOException
Specified by:
getCache in interface CharacterCachingWriter
Throws:
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(char[] c)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(char[] c,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String str)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

uPortal 2.4.1
API Documentation