public class ReadFileRecordResponse extends ModbusResponse
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadFileRecordResponse.RecordResponse |
ModbusResponse.AuxiliaryMessageTypes| Constructor and Description |
|---|
ReadFileRecordResponse()
Constructs a new ReadFileRecordResponse instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResponse(ReadFileRecordResponse.RecordResponse response)
addResponse -- add a new record response.
|
int |
getByteCount()
Returns the number of bytes needed for the response.
|
byte[] |
getMessage()
Returns the raw message as an array of bytes.
|
ReadFileRecordResponse.RecordResponse |
getRecord(int index)
getRecord
|
int |
getRecordCount()
getRecordCount -- return the number of records in the response.
|
void |
readData(DataInput din)
Reads the subclass specific data from the given DataInput instance.
|
void |
writeData(DataOutput dout)
Writes the subclass specific data to the given DataOutput.
|
createModbusResponse, getAuxiliaryType, setAuxiliaryTypegetDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readFrom, setDataLength, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeTopublic ReadFileRecordResponse()
public int getByteCount()
public int getRecordCount()
public ReadFileRecordResponse.RecordResponse getRecord(int index)
index - Record to getpublic void addResponse(ReadFileRecordResponse.RecordResponse response)
response - Record response to addpublic void writeData(DataOutput dout) throws IOException
ModbusMessageImplwriteData in class ModbusMessageImpldout - the DataOutput to be written to.IOException - if an I/O related error occurs.public void readData(DataInput din) throws IOException
ModbusMessageImplreadData in class ModbusMessageImpldin - the DataInput to read from.IOException - if an I/O related error occurs.public byte[] getMessage()
ModbusMessageCopyright © 2025. All Rights Reserved.