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 $Id: CachingOutputStream.java,v 1.5 2002/02/22 07:03:49 cziegeler Exp $
- 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-2002 Apache Software Foundation. All Rights Reserved.