Package org.apache.commons.io.output
Class FlushShieldOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
org.apache.commons.io.output.FlushShieldOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Re-implements
FilterOutputStream.flush() to do nothing.- Since:
- 2.22.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aFlushShieldOutputStreamfilter for the specified underlying output stream. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a new builder ofFlushShieldOutputStream.voidflush()Invokes the delegate'sflush()method.Methods inherited from class org.apache.commons.io.output.ProxyOutputStream
afterWrite, beforeWrite, close, handleIOException, setReference, unwrap, write, write, write, writeRepeat, writeRepeat, writeRepeat
-
Constructor Details
-
FlushShieldOutputStream
Constructs aFlushShieldOutputStreamfilter for the specified underlying output stream.- Parameters:
out- the underlying output stream to be assigned to the fieldthis.outfor later use, ornullif this instance is to be created without an underlying stream.
-
-
Method Details
-
builder
Constructs a new builder ofFlushShieldOutputStream.- Returns:
- a new builder of
FlushShieldOutputStream.
-
flush
Description copied from class:ProxyOutputStreamInvokes the delegate'sflush()method.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classProxyOutputStream- Throws:
IOException- if an I/O error occurs.
-