public class LoggingInputStream extends ModbusInputStream
| Constructor and Description |
|---|
LoggingInputStream(ModbusInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
log() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
setListenerList(FrameEventListenerList listenerList) |
void |
setReadTimeout(int readTimeout)
sets a timeout value. if there is a timeout of read operation a stream must throw new IO exception.
|
read, readShortBE, readShortLEavailable, close, mark, markSupported, reset, skippublic LoggingInputStream(ModbusInputStream in)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void setReadTimeout(int readTimeout)
ModbusInputStreamsetReadTimeout in class ModbusInputStreamreadTimeout - is a timeout value in millisecondspublic void log()
public void setListenerList(FrameEventListenerList listenerList)
Copyright © 2018. All rights reserved.