org.apache.cxf.io
Class CacheAndWriteOutputStream
java.lang.Object
java.io.OutputStream
org.apache.cxf.io.CachedOutputStream
org.apache.cxf.io.CacheAndWriteOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class CacheAndWriteOutputStream
- extends CachedOutputStream
This outputstream implementation will both write to the outputstream
that is specified and cache the data at the same time. This allows us
to go back and retransmit the data at a later time if necessary.
Methods inherited from class org.apache.cxf.io.CachedOutputStream |
close, copyStream, deregisterCallback, doClose, doFlush, equals, flush, getBytes, getCallbacks, getInputStream, getOut, getTempFile, hashCode, lockOutputStream, registerCallback, resetOut, setOutputDir, setThreshold, size, toString, writeCacheTo, writeCacheTo, writeCacheTo |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CacheAndWriteOutputStream
public CacheAndWriteOutputStream(java.io.OutputStream stream)
closeFlowthroughStream
public void closeFlowthroughStream()
throws java.io.IOException
- Throws:
java.io.IOException
postClose
protected void postClose()
throws java.io.IOException
- Description copied from class:
CachedOutputStream
- Perform any actions required after stream closure (close the other related stream etc.)
- Overrides:
postClose
in class CachedOutputStream
- Throws:
java.io.IOException
getFlowThroughStream
public java.io.OutputStream getFlowThroughStream()
onWrite
protected void onWrite()
throws java.io.IOException
- Overrides:
onWrite
in class CachedOutputStream
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class CachedOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class CachedOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Overrides:
write
in class CachedOutputStream
- Throws:
java.io.IOException
Apache CXF