public interface Modbus4JInputStreamCallback
Modifier and Type | Method and Description |
---|---|
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(java.io.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(java.io.IOException e)
IOException
while reading input stream.e
- the exception that was receivedvoid terminated()
Copyright © 2014 Infinite Automation Systems. All Rights Reserved.