|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NonWordDataHandler
Interface implementing a non word data handler for the read/write multiple register commands (class 0).
| Method Summary | |
|---|---|
int |
commitUpdate()
Commits the data if it has been read into an intermediate repository. |
byte[] |
getData()
Returns the intermediate raw non-word data. |
int |
getWordCount()
Returns the word count of the data. |
void |
prepareData(int reference,
int count)
Prepares the raw data, putting it together from a backing data store. |
void |
readData(DataInput in,
int reference,
int count)
Reads the non-word raw data based on an arbitrary implemented structure. |
| Method Detail |
|---|
byte[] getData()
void readData(DataInput in,
int reference,
int count)
throws IOException,
EOFException
in - the DataInput to read from.reference - to specify the offset as int.count - to sepcify 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()
void prepareData(int reference,
int count)
reference - to specify the offset as int.count - to sepcify the amount of bytes as int.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||