public class IdentityInputStream
extends java.io.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 | Description |
|---|---|
IdentityInputStream(SessionInputBuffer in) |
Wraps session input stream and reads input until the the end of stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
public IdentityInputStream(SessionInputBuffer in)
in - The session input bufferpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException