public class

CustomArea

extends GenericArea
java.lang.Object
   ↳ com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea
     ↳ com.datalogic.extension.selfshopping.cradle.joyatouch.CustomArea

Class Overview

Class representing the Joya Touch custom area of data, consisting in an array of bytes and its size. Each Cradle slot contains one of these areas.

Summary

Constants
int SIZE Custom area size for the Joya Touch Cradle.
Public Constructors
CustomArea()
Constructor for an area of SIZE elements.
CustomArea(int size)
Constructor specifying the size of the internal byte array to create.
CustomArea(byte[] content)
Constructor that fills the area with the byte array given as input.
[Expand]
Inherited Methods
From class com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea
From class java.lang.Object

Constants

public static final int SIZE

Added in revision 1

Custom area size for the Joya Touch Cradle. It is not possible to write or read more than this amount of bytes.

Constant Value: 512 (0x00000200)

Public Constructors

public CustomArea ()

Added in revision 1

Constructor for an area of SIZE elements.

public CustomArea (int size)

Added in revision 1

Constructor specifying the size of the internal byte array to create.

Parameters
size The requested byte array size.
Throws
IllegalArgumentException in case the input size is invalid.

public CustomArea (byte[] content)

Added in revision 1

Constructor that fills the area with the byte array given as input.

Parameters
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 CustomArea object.
Throws
IllegalArgumentException in case the input array is invalid.