Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » caching » [javadoc | source]
org.apache.cocoon.caching
public final class: CachingOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      org.apache.cocoon.caching.CachingOutputStream

All Implemented Interfaces:
    Closeable, Flushable

This is an OutputStream which forwards all received bytes to another output stream and in addition caches all bytes, thus acting like a TeeOutputStream.
Constructor:
 public CachingOutputStream(OutputStream os) 
Method from org.apache.cocoon.caching.CachingOutputStream Summary:
close,   flush,   getContent,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.caching.CachingOutputStream Detail:
 public  void close() throws IOException 
 public  void flush() throws IOException 
 public byte[] getContent() 
 public  void write(int b) throws IOException 
 public  void write(byte[] b) throws IOException 
 public  void write(byte[] b,
    int off,
    int len) throws IOException