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 java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentOutputStream
(OutputStream pStream) Ctor.PersistentOutputStream
(OutputStream pStream, boolean pClosable) Ctor. -
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
PersistentOutputStream
Ctor.- Parameters:
pStream
- The underlying stream
-
PersistentOutputStream
Ctor.- Parameters:
pStream
- The underlying streampClosable
- Iffalse
this stream will ignore calls to the close() method.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-