com.connecterra.ale.reader
Class DeviceChannel.MarkingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.connecterra.ale.reader.DeviceChannel.MarkingInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- DeviceChannel
protected class DeviceChannel.MarkingInputStream
- extends FilterInputStream
This class wraps another input stream. Whenever data is
successfully read, it calls DeviceChannel.markUsed(). Channels can
wrap InputStreams they return in this class to handle the last
used time bookkeeping.
|
Method Summary |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeviceChannel.MarkingInputStream
public DeviceChannel.MarkingInputStream(InputStream in)
read
public int read()
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException