org.jasig.portal.serialize
Class CachingWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.jasig.portal.serialize.CachingWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, CharacterCachingWriter

public class CachingWriter
extends Writer
implements CharacterCachingWriter


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

Constructor Detail

CachingWriter

public CachingWriter(Writer out)
Method Detail

startCaching

public boolean startCaching()
                     throws IOException
Specified by:
startCaching in interface CharacterCachingWriter
Throws:
IOException

getCache

public String getCache(String encoding)
                throws IOException
Specified by:
getCache in interface CharacterCachingWriter
Throws:
IOException

stopCaching

public boolean stopCaching()
Specified by:
stopCaching in interface CharacterCachingWriter

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in interface CharacterCachingWriter
Specified by:
flush in class Writer
Throws:
IOException

write

public void write(char[] c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] c,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException


Copyright © 2010 Jasig. All Rights Reserved.