Documentation of 'org.freehep.util.io.NoCloseInputStream' Java class
NoCloseInputStream
org.freehep.util.io

Class NoCloseInputStream

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


    public class NoCloseInputStream
    extends java.io.BufferedInputStream
    The NoCloseInputStream ignores the close so that one can keep reading from the underlying stream.
    • Constructor Summary

      Constructors 
      Constructor and Description
      NoCloseInputStream(java.io.InputStream stream)
      Creates a No Close Input Stream.
      NoCloseInputStream(java.io.InputStream stream, int size)
      Creates a No Close Input Stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      void realClose()
      Close this stream (the normal close is ignored).
      • Methods inherited from class java.io.BufferedInputStream

        available, mark, markSupported, read, read, reset, skip
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.lang.Object

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

      • NoCloseInputStream

        public NoCloseInputStream(java.io.InputStream stream)
        Creates a No Close Input Stream.
        Parameters:
        stream - stream to read from
      • NoCloseInputStream

        public NoCloseInputStream(java.io.InputStream stream,
                                  int size)
        Creates a No Close Input Stream.
        Parameters:
        stream - stream to read from
        size - buffer size
    • Method Detail

      • close

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

        public void realClose()
                       throws java.io.IOException
        Close this stream (the normal close is ignored).
        Throws:
        java.io.IOException - if close fails

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.