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.
Constructor and Description |
---|
IdentityInputStream(SessionInputBuffer buffer,
InputStream inputStream)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close()
Marks this stream as closed, but does NOT close the underlying stream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skip
public IdentityInputStream(SessionInputBuffer buffer, InputStream inputStream)
buffer
- Session input bufferinputStream
- Input streampublic int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
- If an I/O problem occurs.public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.