net.wimpi.modbus.io
Class BINInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by net.wimpi.modbus.io.BINInputStream
All Implemented Interfaces:
Closeable

public class BINInputStream
extends FilterInputStream

Class implementing a specialized InputStream which handles binary transmitted messages.

Version:
@version@ (@date@)
Author:
Dieter Wimberger
See Also:
ModbusBINTransport.FRAME_START, ModbusBINTransport.FRAME_END

Constructor Summary
BINInputStream(InputStream in)
          Constructs a new BINInputStream instance reading from the given InputStream.
 
Method Summary
 int read()
          Reads a byte from the BIN encoded stream.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BINInputStream

public BINInputStream(InputStream in)
Constructs a new BINInputStream instance reading from the given InputStream.

Parameters:
in - a base input stream to be wrapped.
Method Detail

read

public int read()
         throws IOException
Reads a byte from the BIN encoded stream.

Overrides:
read in class FilterInputStream
Returns:
int the byte read from the stream.
Throws:
IOException - if an I/O error occurs.


Copyright © 2010. All Rights Reserved.