@NotThreadSafe 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 in)
Wraps session input stream and reads input until the the end of stream.
|
| 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 in)
in - The session input bufferpublic 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–2013 The Apache Software Foundation. All rights reserved.