Class LoggingOutputStream

java.lang.Object
java.io.OutputStream
org.apache.cxf.io.CachedOutputStream
org.apache.cxf.io.CacheAndWriteOutputStream
org.apache.cxf.ext.logging.LoggingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class LoggingOutputStream extends org.apache.cxf.io.CacheAndWriteOutputStream
  • Field Summary

    Fields inherited from class org.apache.cxf.io.CachedOutputStream

    currentStream, outputLocked
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Override, because there is no need to flush the flow-through stream.
    protected void
    Flush the flow-through stream if the current stream is also flushed.
    protected void
    Override, because there is no need to flush the flow-through stream.
    void
    writeCacheTo(StringBuilder out, String charsetName, long limit)
     

    Methods inherited from class org.apache.cxf.io.CacheAndWriteOutputStream

    getFlowThroughStream, onWrite, setCacheLimit, write, write, write

    Methods inherited from class org.apache.cxf.io.CachedOutputStream

    close, copyStream, deregisterCallback, doClose, equals, flush, getBytes, getCallbacks, getInputStream, getOut, getTempFile, getThreshold, hashCode, holdTempFile, isThresholdSysPropSet, lockOutputStream, registerCallback, releaseTempFileHold, resetOut, setCipherTransformation, setDefaultCipherTransformation, setDefaultMaxSize, setDefaultThreshold, setMaxSize, setOutputDir, setThreshold, size, toString, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTo

    Methods inherited from class java.io.OutputStream

    nullOutputStream

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • closeFlowthroughStream

      public void closeFlowthroughStream() throws IOException
      Override, because there is no need to flush the flow-through stream. Flushing will be done by the underlying OutputStream.
      Overrides:
      closeFlowthroughStream in class org.apache.cxf.io.CacheAndWriteOutputStream
      Throws:
      IOException
      See Also:
      • AbstractThresholdOutputStream.close()
    • postClose

      protected void postClose() throws IOException
      Override, because there is no need to flush the flow-through stream. Flushing will be done by the underlying OutputStream.
      Overrides:
      postClose in class org.apache.cxf.io.CacheAndWriteOutputStream
      Throws:
      IOException
      See Also:
      • AbstractThresholdOutputStream.close()
    • doFlush

      protected void doFlush() throws IOException
      Flush the flow-through stream if the current stream is also flushed.
      Overrides:
      doFlush in class org.apache.cxf.io.CachedOutputStream
      Throws:
      IOException
    • writeCacheTo

      public void writeCacheTo(StringBuilder out, String charsetName, long limit) throws IOException
      Overrides:
      writeCacheTo in class org.apache.cxf.io.CachedOutputStream
      Throws:
      IOException