Class SerialChannelHandler.SerialPortHandler
java.lang.Object
org.apache.plc4x.java.transport.serial.SerialChannelHandler
org.apache.plc4x.java.transport.serial.SerialChannelHandler.SerialPortHandler
- Enclosing class:
SerialChannelHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.plc4x.java.transport.serial.SerialChannelHandler
SerialChannelHandler.SerialPortHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanopen()intread(io.netty.buffer.ByteBuf buf) voidregisterSelectionKey(org.apache.plc4x.java.transport.serial.SerialSelectionKey selectionKey) intwrite(io.netty.buffer.ByteBuf buf)
-
Constructor Details
-
SerialPortHandler
-
-
Method Details
-
open
public boolean open() -
getIdentifier
-
registerSelectionKey
public void registerSelectionKey(org.apache.plc4x.java.transport.serial.SerialSelectionKey selectionKey) -
close
public void close()- Specified by:
closein classSerialChannelHandler
-
read
public int read(io.netty.buffer.ByteBuf buf) - Specified by:
readin classSerialChannelHandler- Returns:
- Return the amoubnt of bytes written into the buffer
-
write
public int write(io.netty.buffer.ByteBuf buf) - Specified by:
writein classSerialChannelHandler- Returns:
- Number of bytes written to wire
-