Class PersistentInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.sblim.cimclient.internal.http.io.PersistentInputStream
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class PersistentInputStream
extends java.io.FilterInputStream
Class PersistentInputStream implements an input stream for which close() can
be disabled.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentInputStream
(java.io.InputStream pStream) Ctor.PersistentInputStream
(java.io.InputStream pStream, boolean pClosable) Ctor. -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PersistentInputStream
public PersistentInputStream(java.io.InputStream pStream) Ctor.- Parameters:
pStream
- The underlying stream
-
PersistentInputStream
public PersistentInputStream(java.io.InputStream 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.FilterInputStream
- Throws:
java.io.IOException
-