FreeHEP API
Version current

org.freehep.util.io
Class NoCloseInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.BufferedInputStream
              extended byorg.freehep.util.io.NoCloseInputStream

public class NoCloseInputStream
extends BufferedInputStream

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

Version:
$Id: NoCloseInputStream.java,v 1.3 2003/04/30 22:16:15 duns Exp $
Author:
Mark Donszelmann
Source Code:
NoCloseInputStream.java

Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
NoCloseInputStream(InputStream stream)
           
NoCloseInputStream(InputStream stream, int size)
           
 
Method Summary
 void close()
           
 void realClose()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCloseInputStream

public NoCloseInputStream(InputStream stream)

NoCloseInputStream

public NoCloseInputStream(InputStream stream,
                          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.