Package com.powsybl.commons.io
Class UnclosableOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.powsybl.commons.io.UnclosableOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A
OutputStream
wrapper that do not close underlying OutputStream
but call
OutputStream.flush()
instead.- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
UnclosableOutputStream
-
-
Method Details
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-