Package com.powsybl.commons.datasource
Class ObservableOutputStream
java.lang.Object
java.io.OutputStream
com.powsybl.commons.io.ForwardingOutputStream<OutputStream>
com.powsybl.commons.datasource.ObservableOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An output stream wrapper that allows notification when the stream is opened
and closed.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
Fields inherited from class com.powsybl.commons.io.ForwardingOutputStream
os
-
Constructor Summary
ConstructorDescriptionObservableOutputStream
(OutputStream os, String streamName, DataSourceObserver observer) -
Method Summary
Methods inherited from class com.powsybl.commons.io.ForwardingOutputStream
flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ObservableOutputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classForwardingOutputStream<OutputStream>
- Throws:
IOException
-