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

Class NoCloseReader

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


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

      Constructors 
      Constructor and Description
      NoCloseReader(java.io.Reader reader)
      Creates a No Close Reader.
      NoCloseReader(java.io.Reader reader, int size)
      Creates a No Close Reader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      void realClose()
      Closes the reader (close is ignored).
      • Methods inherited from class java.io.BufferedReader

        lines, mark, markSupported, read, read, readLine, ready, reset, skip
      • Methods inherited from class java.io.Reader

        read, read
      • Methods inherited from class java.lang.Object

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

      • NoCloseReader

        public NoCloseReader(java.io.Reader reader)
        Creates a No Close Reader.
        Parameters:
        reader - reader to read from
      • NoCloseReader

        public NoCloseReader(java.io.Reader reader,
                             int size)
        Creates a No Close Reader.
        Parameters:
        reader - reader 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.BufferedReader
        Throws:
        java.io.IOException
      • realClose

        public void realClose()
                       throws java.io.IOException
        Closes the reader (close is ignored).
        Throws:
        java.io.IOException - if the close fails

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.