@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).
| 构造器和说明 |
|---|
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 在类中 java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read 在类中 java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read 在类中 java.io.InputStreamjava.io.IOException