com.sap.ip.me.api.pios.scanner
Class ScannerData

java.lang.Object
  extended bycom.sap.ip.me.api.pios.scanner.ScannerData

public abstract class ScannerData
extends java.lang.Object

The ScannerData class represents the barcode data read by the scanner. It provides the user with methods to get the barcode symbology and and the scanned data bytes.

Since:
MI 2.5
Author:
Abaco
See Also:
Symbology

Constructor Summary
protected ScannerData(Symbology symbology, byte[] data)
          Constructs a new ScannerData object given the symbology and the scanned data in an array of bytes.
 
Method Summary
abstract  Symbology getSymbology()
          Returns the symbology object for the scanned data.
abstract  byte[] toByteArray()
          Returns the byte representation of the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerData

protected ScannerData(Symbology symbology,
                      byte[] data)
Constructs a new ScannerData object given the symbology and the scanned data in an array of bytes.

Parameters:
symbology - the symbology object of the scanned data
data - the byte array with the scanned data
See Also:
Symbology
Method Detail

getSymbology

public abstract Symbology getSymbology()
Returns the symbology object for the scanned data.

Returns:
Symbology of the scanned data.
See Also:
Symbology

toByteArray

public abstract byte[] toByteArray()
Returns the byte representation of the data.

Returns:
The byte array containing the data.


Copyright © 2005 SAP AG. All Rights Reserved.