T - Type of data which can be transferred to/from this devicepublic interface DeviceContext<T> extends Context
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getDataType()
Get the type of transferred data.
|
T |
read()
Read data from the device.
|
void |
write(T val)
Writes/sends data to the device.
|
T read() throws IOException
IOException - if something goes wrongvoid write(T val) throws IOException
val - data to be written to the deviceIOException - if something goes wrongCopyright © 2017. All rights reserved.