org.avineas.fins.payload
public class ReadResponse extends Response
RESPONSEOKMAXPAYLOADSIZE| Constructor and Description |
|---|
ReadResponse(byte[] payload)
Constructor from a FINS payload.
|
ReadResponse(Command command,
byte[] contents)
Constructor from a command and a specific response code/contents.
|
ReadResponse(Command command,
int[] values)
Create a read response from a set of values.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getValues()
Get the values from the response.
|
getContents, getMainCode, getResponseCode, getResponseCodeAsString, getSubCode, setContents, setResponseCodedecode, encode, getBytes, getBytes, getMrc, getRequestCode, getSrc, setMrc, setRequestCode, setRequestCode, setSrcpublic ReadResponse(byte[] payload)
payload - The payloadpublic ReadResponse(Command command, byte[] contents)
command - The command this one is a response tocontents - The contents of the read, meaning the data as readpublic ReadResponse(Command command, int[] values)
command - The original commandvalues - The values as integers, are coded in FINS layout