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

    Constructors
    Constructor
    Description
    PersistentInputStream(java.io.InputStream pStream)
    Ctor.
    PersistentInputStream(java.io.InputStream pStream, boolean pClosable)
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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 stream
      pClosable - If false this stream will ignore calls to the close() method.
  • Method Details

    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class java.io.FilterInputStream
      Throws:
      java.io.IOException