net.wimpi.modbus.io
Class BINInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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. |
BINInputStream
public BINInputStream(InputStream in)
- Constructs a new BINInputStream instance
reading from the given InputStream.
- Parameters:
in
- a base input stream to be wrapped.
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.