BEA Systems, Inc.

com.connecterra.ale.reader
Class DeviceChannel.MarkingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DeviceChannel.MarkingInputStream(InputStream in)
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceChannel.MarkingInputStream

public DeviceChannel.MarkingInputStream(InputStream in)
Method Detail

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

Documentation is available at
${DOCSWEBROOT}
Copyright 2007 BEA Systems Inc.