org.apache.cocoon.caching
Class CachingOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--org.apache.cocoon.caching.CachingOutputStream
- public final class CachingOutputStream
- extends java.io.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 $Revision: 1.2.2.3 $ $Date: 2001/10/11 08:56:05 $
- Author:
- Carsten Ziegeler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingOutputStream
public CachingOutputStream(java.io.OutputStream os)
getContent
public byte[] getContent()
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
flush
public void flush()
throws java.io.IOException
- Overrides:
flush
in class java.io.OutputStream
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.OutputStream
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.