public class NonClosingInputStream extends FilterInputStream
InputStream that wraps an existing InputStream and prevents closing the
original InputStream. | Modifier and Type | Class and Description |
|---|---|
protected static class |
NonClosingInputStream.ClosedInputStream
This inner class is a stream that will always throw a
StreamClosedException. |
in| Constructor and Description |
|---|
NonClosingInputStream(InputStream delegate)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
available, mark, markSupported, read, read, read, reset, skippublic NonClosingInputStream(InputStream delegate)
delegate - is the InputStream to adapt.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2001–2016 mmm-Team. All rights reserved.