public class DecodeResult
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<DecodeResult> |
CREATOR |
int |
decodeLength
Length of barcode data
|
int |
decodeTimeMillisecond
The decode time in milliseconds
|
byte[] |
decodeValue
Barcode data
|
byte |
letter
Unique characters defined by AIM(Association for Automatic Identification and Mobility) to identity symbologies.
|
byte |
modifier
AIM ID's modifier
Please refer AIM code identifier table.
|
byte |
symId
Symbology ID of the barcode data
|
java.lang.String |
symName
Symbology name of the barcode data
|
int |
symType
Symbology type of the barcode data
|
Constructor and Description |
---|
DecodeResult()
Constructor of DecodeResult.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marchalled representation.
|
void |
readFromParcel(android.os.Parcel in)
Set the decode result from the data stored in the specified parcel.
|
DecodeResult |
recycle()
Clears all member valiables.
|
java.lang.String |
toString()
Converts the barcode data to UTF-8 string.
|
java.lang.String |
toString(java.lang.String charsetName)
Converts the barcode data to a string with the specified charset.
|
void |
writeToParcel(android.os.Parcel dest,
int flags)
Write this decode result to the specified parcel.
|
public int decodeLength
public byte[] decodeValue
public java.lang.String symName
public byte symId
ScanConst.SymbologyID
public int symType
public byte letter
public byte modifier
public int decodeTimeMillisecond
public static final android.os.Parcelable.Creator<DecodeResult> CREATOR
public void readFromParcel(android.os.Parcel in)
in
- The parcel to read the decode result fromwriteToParcel()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
dest
- The parcel to write the decode result intoflags
- Additional flags about how the object should be written. Unused.readFromParcel()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String charsetName)
charsetName
- The name of the charset.public DecodeResult recycle()