public class UncloseableInputStream extends FilterInputStream
FilterInputStream where the close() method is disabled. Use this
class to pass an InputStream to another method, to make sure that the method is
unable to close your stream unintentionally.in| Constructor and Description |
|---|
UncloseableInputStream(InputStream in)
Creates a new UncloseableInputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does not close the
InputStream. |
available, mark, markSupported, read, read, read, reset, skippublic UncloseableInputStream(InputStream in)
in - InputStream which shall not be closed.public void close() throws IOException
InputStream.close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2004–2016. All rights reserved.