Apache CXF API

Class WriteOnCloseOutputStream

  extended by java.io.OutputStream
      extended by org.apache.cxf.io.CachedOutputStream
          extended by org.apache.cxf.io.WriteOnCloseOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class WriteOnCloseOutputStream
extends CachedOutputStream

This outputstream implementation will cache the message until close() is called, at which point it will write the message to the OutputStream supplied via the constructor.

Field Summary
Fields inherited from class org.apache.cxf.io.CachedOutputStream
currentStream, outputLocked
Constructor Summary
WriteOnCloseOutputStream(OutputStream stream)
Method Summary
protected  void doClose()
          Perform any actions required on stream closure (handle response etc.)
Methods inherited from class org.apache.cxf.io.CachedOutputStream
close, copyStream, deregisterCallback, doFlush, equals, flush, getBytes, getCallbacks, getInputStream, getOut, getTempFile, hashCode, holdTempFile, lockOutputStream, onWrite, postClose, registerCallback, releaseTempFileHold, resetOut, setMaxSize, setOutputDir, setThreshold, size, toString, write, write, write, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public WriteOnCloseOutputStream(OutputStream stream)
Method Detail


protected void doClose()
                throws IOException
Description copied from class: CachedOutputStream
Perform any actions required on stream closure (handle response etc.)

doClose in class CachedOutputStream

Apache CXF API

Apache CXF