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
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
-
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:
write
in classOutputStream
- Throws:
IOException
-
onFirstWrite
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
allowFlush
public void allowFlush(boolean b)
-