@Deprecated public interface NonWordDataHandler
| Modifier and Type | Method and Description |
|---|---|
int |
commitUpdate()
Deprecated.
Commits the data if it has been read into an intermediate repository.
|
byte[] |
getData()
Deprecated.
Returns the intermediate raw non-word data.
|
int |
getWordCount()
Deprecated.
Returns the word count of the data.
|
void |
prepareData(int reference,
int count)
Deprecated.
Prepares the raw data, putting it together from a backing data store.
|
void |
readData(DataInput in,
int reference,
int count)
Deprecated.
Reads the non-word raw data based on an arbitrary implemented structure.
|
byte[] getData()
An implementation would need to provide a means of converting between the raw byte data and the registers that are present in actual messages.
void readData(DataInput in, int reference, int count) throws IOException
in - the DataInput to read from.reference - to specify the offset as int.count - to specify the amount of bytes as int.IOException - if I/O fails.EOFException - if the stream ends before all data is read.int getWordCount()
int commitUpdate()
This method is called for a message (for example, a WriteMultipleRegistersRequest instance) when finished with reading, for creating a response.
void prepareData(int reference,
int count)
This method is called for a message (for example, * ReadMultipleRegistersRequest) when finished with reading, for creating a response.
reference - to specify the offset as int.count - to specify the number of bytes as int.Copyright © 2025. All Rights Reserved.