Class PersistentOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.sblim.cimclient.internal.http.io.PersistentOutputStream
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class PersistentOutputStream
extends java.io.FilterOutputStream
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
(java.io.OutputStream pStream) Ctor.PersistentOutputStream
(java.io.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PersistentOutputStream
public PersistentOutputStream(java.io.OutputStream pStream) Ctor.- Parameters:
pStream
- The underlying stream
-
PersistentOutputStream
public PersistentOutputStream(java.io.OutputStream pStream, boolean pClosable) Ctor.- Parameters:
pStream
- The underlying streampClosable
- Iffalse
this stream will ignore calls to the close() method.
-
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-