Package com.powsybl.commons.io
Class ForwardingOutputStream<O extends OutputStream>
java.lang.Object
java.io.OutputStream
com.powsybl.commons.io.ForwardingOutputStream<O>
- Type Parameters:
O
- the kind of output stream forwarded
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
ObservableOutputStream
Forwards calls to a given output stream. Subclasses of this class might
override some of these methods.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
os
-
-
Constructor Details
-
ForwardingOutputStream
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-