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, skip
public NonClosingInputStream(InputStream delegate)
delegate
- is the InputStream
to adapt.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
Copyright © 2001–2016 mmm-Team. All rights reserved.