public class NotifyingInputStream extends InputStream
NotifyingStreamCallback,
NotifyingOutputStream| Constructor and Description |
|---|
NotifyingInputStream(InputStream delegate,
NotifyingStreamCallback callback)
Initialize this stream with the specified input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, mark, markSupported, resetpublic NotifyingInputStream(InputStream delegate, NotifyingStreamCallback callback)
delegate - the input stream to which operations are delegated.callback - the callback to notify of stream operations.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2005-2012 JPPF Team.