org.apache.cocoon.caching
Class CachingOutputStream
java.lang.Object
java.io.OutputStream
org.apache.cocoon.caching.CachingOutputStream
- public final class CachingOutputStream
- extends OutputStream
This is an OutputStream
which forwards all received bytes to another
output stream and in addition caches all bytes, thus acting like a
TeeOutputStream.
- Version:
- CVS $Id: CachingOutputStream.java 30941 2004-07-29 19:56:58Z vgritsenko $
- Author:
- Carsten Ziegeler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingOutputStream
public CachingOutputStream(OutputStream os)
getContent
public byte[] getContent()
write
public void write(int b)
throws IOException
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.