Package org.apache.cxf.ext.logging
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 CacheAndWriteOutputStream
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.io.CachedOutputStream
currentStream, outputLocked
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseFlowthroughStream()Override, because there is no need to flush the flow-through stream.protected voiddoFlush()Flush the flow-through stream if the current stream is also flushed.protected voidpostClose()Override, because there is no need to flush the flow-through stream.voidwriteCacheTo(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
-
-
-
-
Method Detail
-
closeFlowthroughStream
public void closeFlowthroughStream() throws IOExceptionOverride, because there is no need to flush the flow-through stream. Flushing will be done by the underlying OutputStream.- Overrides:
closeFlowthroughStreamin classCacheAndWriteOutputStream- Throws:
IOException- See Also:
AbstractThresholdOutputStream.close()
-
postClose
protected void postClose() throws IOExceptionOverride, because there is no need to flush the flow-through stream. Flushing will be done by the underlying OutputStream.- Overrides:
postClosein classCacheAndWriteOutputStream- Throws:
IOException- See Also:
AbstractThresholdOutputStream.close()
-
doFlush
protected void doFlush() throws IOExceptionFlush the flow-through stream if the current stream is also flushed.- Overrides:
doFlushin classCachedOutputStream- Throws:
IOException
-
writeCacheTo
public void writeCacheTo(StringBuilder out, String charsetName, long limit) throws IOException
- Overrides:
writeCacheToin classCachedOutputStream- Throws:
IOException
-
-