Class UnclosableInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class UnclosableInputStream
    extends java.io.FilterInputStream
    Provides an InputStreamFilter which avoids closing the original stream.
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      UnclosableInputStream​(java.io.InputStream in)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Does not close the original stream.
      • Methods inherited from class java.io.FilterInputStream

        available, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnclosableInputStream

        public UnclosableInputStream​(java.io.InputStream in)
        Default constructor.
        Parameters:
        in - the Stream to filter.
    • Method Detail

      • close

        public void close()
        Does not close the original stream.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FilterInputStream