public class MonitorInputStream
extends java.io.BufferedInputStream
| Constructor | Description |
|---|---|
MonitorInputStream(java.io.InputStream in) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes this input stream and releases any system resources
associated with the stream.
|
long |
getCount() |
Get the nuber of bytes read by this input stream
|
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.error occurs.
|
public int read()
throws java.io.IOException
read in class java.io.BufferedInputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.BufferedInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class java.io.BufferedInputStreamjava.io.IOExceptionprotected void onClose()
throws java.io.IOException
java.io.IOExceptionpublic long getCount()