FreeHEP API
Version v1.2.2

org.freehep.util.io
Class NoCloseReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.BufferedReader
              |
              +--org.freehep.util.io.NoCloseReader

public class NoCloseReader
extends BufferedReader

The NoCloseReader ignores the close so that one can keep reading from the underlying stream.

Version:
$Id: NoCloseReader.java,v 1.1 2003/12/09 22:12:54 duns Exp $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
NoCloseReader(Reader reader)
           
NoCloseReader(Reader reader, int size)
           
 
Method Summary
 void close()
           
 void realClose()
           
 
Methods inherited from class java.io.BufferedReader
mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCloseReader

public NoCloseReader(Reader reader)

NoCloseReader

public NoCloseReader(Reader reader,
                     int size)
Method Detail

close

public void close()
           throws IOException
Overrides:
close in class BufferedReader
IOException

realClose

public void realClose()
               throws IOException
IOException

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.