public class RawMonitorInputStream extends FilterInputStream
This is the same as MonitorInputStream
but without the buffering.
in
Constructor and Description |
---|
RawMonitorInputStream(InputStream inputStream)
Constructs a MonitorInputStream from the passed InputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns 0 if the stream is at EOF, else the underlying inputStream will be queried.
|
void |
close()
Closes this input stream and releases any system resources associated with the stream.
|
long |
getCount()
Gets the number of bytes read by this input stream.
|
void |
mark(int readlimit) |
protected void |
onClose()
Called after the stream has been closed.
|
int |
read()
Reads a character.
|
int |
read(byte[] buffer,
int offset,
int length)
Reads bytes from this input stream.
|
markSupported, read, reset, skip
public RawMonitorInputStream(InputStream inputStream)
inputStream
- The input stream to wrap.public int available() throws IOException
available
in class FilterInputStream
IOException
- if an error occurs.public int read() throws IOException
read
in class FilterInputStream
IOException
- if an error occurs.public int read(byte[] buffer, int offset, int length) throws IOException
read
in class FilterInputStream
buffer
- A byte array in which to place the characters read.offset
- The offset at which to start reading.length
- The maximum number of bytes to read.IOException
- if an error occurs.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
- if an error occurs.protected void onClose() throws IOException
IOException
- if an error occurs.public long getCount()
public void mark(int readlimit)
mark
in class FilterInputStream
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.