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, skipreadpublic 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 Closeableclose in interface AutoCloseableclose in class BufferedInputStreamIOExceptionpublic void realClose()
throws IOException
IOException - if close failsCopyright © 2016. All rights reserved.