@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.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose 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