public class NoCloseInputStream extends BufferedInputStream
in
Constructor and Description |
---|
NoCloseInputStream(InputStream stream)
Creates a No Close Input Stream.
|
NoCloseInputStream(InputStream stream,
int size)
Creates a No Close Input Stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
realClose()
Close this stream (the normal close is ignored).
|
available, mark, markSupported, read, read, reset, skip
read
public NoCloseInputStream(InputStream stream)
stream
- stream to read frompublic NoCloseInputStream(InputStream stream, int size)
stream
- stream to read fromsize
- buffer sizepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class BufferedInputStream
IOException
public void realClose() throws IOException
IOException
- if close failsCopyright © 2016. All rights reserved.