java.lang.Object | |
↳ | com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea |
Known Direct Subclasses |
Class representing a generic area of data, consisting in an array of bytes and its size.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for an empty area.
| |||||||||||
Constructor specifying the size of the internal byte array to create.
| |||||||||||
Constructor that fills the area with the byte array given as input.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the content of this area.
| |||||||||||
Gets the area size.
| |||||||||||
Sets the content of this area.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor specifying the size of the internal byte array to create.
size | The requested byte array size. |
---|
IllegalArgumentException | in case the input size is invalid. |
---|
Constructor that fills the area with the byte array given as input.
content | The byte array that will represent the content of the new area. This array will be deep copied inside the class, any modification to the original array will not be reproduced inside the GenericArea object. |
---|
IllegalArgumentException | in case the input array is invalid. |
---|
Gets the content of this area.
byte[]
the byte array representing the area
content.
Gets the area size.
int
the internal byte array length.
Sets the content of this area.
content | The new byte array that will be deep copied inside the area, substituting the old one (if present). |
---|
IllegalArgumentException | in case the input array is invalid. |
---|