Package org.apache.cxf.io
Class AbstractWrappedOutputStream
java.lang.Object
java.io.OutputStream
org.apache.cxf.io.AbstractWrappedOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
AbstractThresholdOutputStream
Provides a convenient hook onFirstWrite() for those needing
to wrap an output stream.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
wrappedStream
-
written
protected boolean written -
allowFlush
protected boolean allowFlush
-
-
Constructor Details
-
AbstractWrappedOutputStream
protected AbstractWrappedOutputStream() -
AbstractWrappedOutputStream
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
onFirstWrite
- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
allowFlush
public void allowFlush(boolean b)
-