public class ScanDataCollection.ScanData
extends java.lang.Object
Example Usage: ArrayList<ScanData> scanDataList = scanDataCollection.getScanData() for(ScanData scanData :scanDataList) { String data = scanData.getData(); LABEL_TYPE labelType = scanData.getLabelType(); String timeStamp = scanData.getTimeStamp(); }
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData()
Returns the scanned barcode data string.
|
ScanDataCollection.LabelType |
getLabelType()
Returns label type of the scanned data.
|
byte[] |
getRawData()
Returns the raw decoded data as byte array.
|
java.lang.String |
getTimeStamp()
Returns the time at which the barcode was scanned.
|
public byte[] getRawData()
Example Usage: byte[] rawData = data.getRawData(); StringBuilder builder = new StringBuilder(); for(byte b : rawData) { builder.append(String.format("%02x", b)); } return builder.toString();
public java.lang.String getData()
public ScanDataCollection.LabelType getLabelType()
public java.lang.String getTimeStamp()