public interface Modbus4JInputStreamCallback
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closed()
Called when the closure of the input stream is detected.
|
void |
input(byte[] buf,
int len)
Called when content is read from the input stream.
|
void |
ioException(IOException e)
Called if there is an
IOException while reading input stream. |
void |
terminated()
Called if the InputStreamEPoll instance was terminated while the input stream was still registered.
|
void input(byte[] buf,
int len)
buf - the content that was read. This is a shared byte array. Contents can be manipulated within this call,
but the array itself should not be stored beyond the call since the contents will be changed.len - the length of content that was read.void closed()
void ioException(IOException e)
IOException while reading input stream.e - the exception that was receivedvoid terminated()
Copyright © 2018. All rights reserved.