Class PersistentOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.sblim.cimclient.internal.http.io.PersistentOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Class PersistentOutputStream implements an output stream for which close()
can be disabled.
-
Field Summary
Fields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionPersistentOutputStream(OutputStream pStream) Ctor.PersistentOutputStream(OutputStream pStream, boolean pClosable) Ctor. -
Method Summary
Methods inherited from class FilterOutputStream
flush, write, write, writeMethods inherited from class OutputStream
nullOutputStream
-
Constructor Details
-
PersistentOutputStream
Ctor.- Parameters:
pStream- The underlying stream
-
PersistentOutputStream
Ctor.- Parameters:
pStream- The underlying streampClosable- Iffalsethis stream will ignore calls to the close() method.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-