public class ScannerIndicator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ConnectionIndicator |
connection |
ErrorIndicator |
error |
GoodReadIndicator |
goodRead |
PowerOffIndicator |
powerOff |
PowerOnIndicator |
powerOn |
SettingIndicator |
setting |
| Constructor and Description |
|---|
ScannerIndicator(GoodReadIndicator goodRead,
ConnectionIndicator connection,
SettingIndicator setting,
ErrorIndicator error,
PowerOnIndicator powerOn,
PowerOffIndicator powerOff)
Constructs a new ScannerIndicator object with the specified indicators.
|
| Modifier and Type | Method and Description |
|---|---|
static ScannerIndicator |
decode(byte[] data)
Decodes a byte array into a ScannerIndicator object.
|
byte[] |
encode()
Encodes the scanner indicators into a byte array.
|
java.lang.String |
toString() |
public GoodReadIndicator goodRead
public ConnectionIndicator connection
public SettingIndicator setting
public ErrorIndicator error
public PowerOnIndicator powerOn
public PowerOffIndicator powerOff
public ScannerIndicator(GoodReadIndicator goodRead, ConnectionIndicator connection, SettingIndicator setting, ErrorIndicator error, PowerOnIndicator powerOn, PowerOffIndicator powerOff)
goodRead - The GoodReadIndicator of the scanner.connection - The ConnectionIndicator of the scanner.setting - The SettingIndicator of the scanner.error - The ErrorIndicator of the scanner.powerOn - The PowerOnIndicator of the scanner.powerOff - The PowerOffIndicator of the scanner.public byte[] encode()
public static ScannerIndicator decode(byte[] data) throws ReaderException
data - The byte array to decode.ReaderException - If the byte array is not a valid representation of a ScannerIndicator.public java.lang.String toString()
toString in class java.lang.Object