| java.io.BufferedInputStream org.apache.commons.vfs.util.MonitorInputStream
MonitorInputStream | public class MonitorInputStream extends BufferedInputStream (Code) | | An InputStream that provides buffering and end-of-stream monitoring.
author: Adam Murdoch version: $Revision: 501759 $ $Date: 2007-01-31 00:07:57 -0800 (Wed, 31 Jan 2007) $ |
Method Summary | |
public synchronized int | available() | public void | close() Closes this input stream and releases any system resources
associated with the stream. | public long | getCount() | protected void | onClose() Called after the stream has been closed. | public int | read() Reads a character. | public int | read(byte[] buffer, int offset, int length) Reads bytes from this input stream.error occurs. |
available | public synchronized int available() throws IOException(Code) | | Returns 0 if the stream is at eof, else the underlaying inputStream will be queried
|
close | public void close() throws IOException(Code) | | Closes this input stream and releases any system resources
associated with the stream.
|
getCount | public long getCount()(Code) | | Get the nuber of bytes read by this input stream
|
onClose | protected void onClose() throws IOException(Code) | | Called after the stream has been closed. This implementation does
nothing.
|
read | public int read(byte[] buffer, int offset, int length) throws IOException(Code) | | Reads bytes from this input stream.error occurs.
|
|
|