public class IdentityInputStream extends InputStream
Note that this class NEVER closes the underlying stream, even when
close() gets called. Instead, the stream will be marked as
closed and no further reading will be permitted.
| 构造器和说明 |
|---|
IdentityInputStream(SessionInputBuffer buffer,
InputStream inputStream)
Default constructor.
|
public IdentityInputStream(SessionInputBuffer buffer, InputStream inputStream)
buffer - Session input bufferinputStream - Input streampublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOException - If an I/O problem occurs.public int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionCopyright © 2023. All rights reserved.