|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModbusTransport
Interface defining the I/O mechanisms for ModbusMessage instances.
Method Summary | |
---|---|
void |
close()
Closes the raw input and output streams of this ModbusTransport. |
ModbusRequest |
readRequest()
Reads a ModbusRequest from the input stream of this ModbusTransport. |
ModbusResponse |
readResponse()
Reads a ModbusResponse from the input stream of this ModbusTransport. |
void |
writeMessage(ModbusMessage msg)
Writes a to the output stream of this ModbusTransport. |
Method Detail |
---|
void close() throws IOException
IOException
- if a stream
cannot be closed properly.void writeMessage(ModbusMessage msg) throws ModbusIOException
msg
- a ModbusMessage.
ModbusIOException
- data cannot be
written properly to the raw output stream of
this ModbusTransport.ModbusRequest readRequest() throws ModbusIOException
ModbusIOException
- data cannot be
read properly from the raw input stream of
this ModbusTransport.ModbusResponse readResponse() throws ModbusIOException
ModbusIOException
- data cannot be
read properly from the raw input stream of
this ModbusTransport.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |