public class IdentityInputStream extends InputStream
Note that this class NEVER closes the underlying stream, even when
close() gets called. Instead, the stream will be marked as
closed and no further reading will be permitted.
| Constructor and Description |
|---|
IdentityInputStream(SessionInputBuffer buffer,
InputStream inputStream)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
Marks this stream as closed, but does NOT close the underlying stream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skippublic IdentityInputStream(SessionInputBuffer buffer, InputStream inputStream)
buffer - Session input bufferinputStream - Input streampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException - If an I/O problem occurs.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.