public class InputStreamASCII extends InputStreamSerial
| Constructor and Description |
|---|
InputStreamASCII(SerialPort serial) |
| Modifier and Type | Method and Description |
|---|---|
void |
frameCheck()
transport invokes it for validation of each frame
|
void |
frameInit()
it should be invoked before reading of a frame.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
readRaw() |
log, setListenerList, setReadTimeoutread, readShortBE, readShortLEavailable, close, mark, markSupported, reset, skippublic InputStreamASCII(SerialPort serial)
public void frameCheck()
throws IOException,
ModbusChecksumException
InputStreamSerialframeCheck in class InputStreamSerialIOException - when there is any communication troubleModbusChecksumException - when invalid frame has receivedpublic void frameInit()
throws IOException
InputStreamSerialframeInit in class InputStreamSerialIOException - when there is any communication troublepublic int readRaw()
throws IOException
IOExceptionpublic int read()
throws IOException
read in class LoggingInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class LoggingInputStreamIOExceptionCopyright © 2018. All rights reserved.