org.freehep.util.io
Class NoCloseInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.freehep.util.io.NoCloseInputStream
- All Implemented Interfaces:
- Closeable
public class NoCloseInputStream
- extends BufferedInputStream
The NoCloseInputStream ignores the close so that one can keep reading from
the underlying stream.
- Version:
- $Id: src/main/java/org/freehep/util/io/NoCloseInputStream.java
96b41b903496 2005/11/21 19:50:18 duns $
- Author:
- Mark Donszelmann
|
Method Summary |
void |
close()
|
void |
realClose()
Close this stream (the normal close is ignored). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoCloseInputStream
public NoCloseInputStream(InputStream stream)
- Creates a No Close Input Stream.
- Parameters:
stream - stream to read from
NoCloseInputStream
public NoCloseInputStream(InputStream stream,
int size)
- Creates a No Close Input Stream.
- Parameters:
stream - stream to read fromsize - buffer size
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class BufferedInputStream
- Throws:
IOException
realClose
public void realClose()
throws IOException
- Close this stream (the normal close is ignored).
- Throws:
IOException - if close fails
Copyright © 2012. All Rights Reserved.