@NotThreadSafe 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 and Description |
---|
IdentityInputStream(SessionInputBuffer in)
Wraps session input stream and reads input until the the end of stream.
|
public IdentityInputStream(SessionInputBuffer in)
in
- The session input bufferpublic int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException