FreeHEP API
Version current

org.freehep.util.io
Class NoCloseReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.BufferedReader
          extended byorg.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
Source Code:
NoCloseReader.java

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
Throws:
IOException

realClose

public void realClose()
               throws IOException
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.