|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.apache.cxf.io.CachedOutputStream
org.apache.cxf.io.CacheAndWriteOutputStream
public class CacheAndWriteOutputStream
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.
| Field Summary |
|---|
| Fields inherited from class org.apache.cxf.io.CachedOutputStream |
|---|
currentStream, outputLocked |
| Constructor Summary | |
|---|---|
CacheAndWriteOutputStream(OutputStream stream)
|
|
| Method Summary | |
|---|---|
void |
closeFlowthroughStream()
|
OutputStream |
getFlowThroughStream()
|
protected void |
onWrite()
|
protected void |
postClose()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class org.apache.cxf.io.CachedOutputStream |
|---|
close, copyStream, deregisterCallback, doClose, doFlush, equals, flush, getBytes, getCallbacks, getInputStream, getOut, getTempFile, hashCode, holdTempFile, lockOutputStream, registerCallback, releaseTempFileHold, resetOut, setMaxSize, setOutputDir, setThreshold, size, toString, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CacheAndWriteOutputStream(OutputStream stream)
| Method Detail |
|---|
public void closeFlowthroughStream()
throws IOException
IOException
protected void postClose()
throws IOException
postClose in class org.apache.cxf.io.CachedOutputStreamIOExceptionpublic OutputStream getFlowThroughStream()
protected void onWrite()
throws IOException
onWrite in class org.apache.cxf.io.CachedOutputStreamIOException
public void write(int b)
throws IOException
write in class org.apache.cxf.io.CachedOutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class org.apache.cxf.io.CachedOutputStreamIOException
public void write(byte[] b)
throws IOException
write in class org.apache.cxf.io.CachedOutputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||