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 org.apache.cxf.io.CacheAndWriteOutputStream
-
Field Summary
Fields inherited from class org.apache.cxf.io.CachedOutputStream
currentStream, outputLocked -
Method Summary
Modifier and TypeMethodDescriptionvoidOverride, 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 voidOverride, 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, writeMethods 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, writeCacheToMethods inherited from class java.io.OutputStream
nullOutputStream
-
Method Details
-
closeFlowthroughStream
Override, because there is no need to flush the flow-through stream. Flushing will be done by the underlying OutputStream.- Overrides:
closeFlowthroughStreamin classorg.apache.cxf.io.CacheAndWriteOutputStream- Throws:
IOException- See Also:
-
AbstractThresholdOutputStream.close()
-
postClose
Override, because there is no need to flush the flow-through stream. Flushing will be done by the underlying OutputStream.- Overrides:
postClosein classorg.apache.cxf.io.CacheAndWriteOutputStream- Throws:
IOException- See Also:
-
AbstractThresholdOutputStream.close()
-
doFlush
Flush the flow-through stream if the current stream is also flushed.- Overrides:
doFlushin classorg.apache.cxf.io.CachedOutputStream- Throws:
IOException
-
writeCacheTo
- Overrides:
writeCacheToin classorg.apache.cxf.io.CachedOutputStream- Throws:
IOException
-