public class IdentityInputStream extends InputStream
Note that this class NEVER closes the underlying stream, even when close
gets called. Instead, it will read until the end of the stream (until
-1 is returned).
| Constructor and Description |
|---|
IdentityInputStream(SessionInputBuffer buffer,
InputStream inputStream)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
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 InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.