public class ScanDataCollection.ScanData extends 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 |
---|---|
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.
|
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 String getData()
public ScanDataCollection.LabelType getLabelType()
public String getTimeStamp()