Package com.cognex.cmbsdk.readerdevice
Class ReadResult
java.lang.Object
com.cognex.cmbsdk.readerdevice.ReadResult
- All Implemented Interfaces:
Serializable
Represents a read result
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetID()Result id for this resultandroid.graphics.BitmapgetImage()Returns the image for this resultbyte[]Returns the image as byte array for this resultReturns the SVG XML string for this resultbooleangetIsGS1()GS1 value of the resultReturns parsed text in json format from the resultReturns parsed text from the resultReturns the read string, if availableReturns the code symbology of the resultgetXml()Returns the subresult XML string for this resultinthashCode()booleanSuccess of the read
-
Method Details
-
getID
public int getID()Result id for this result- Returns:
- result id
-
isGoodRead
public boolean isGoodRead()Success of the read- Returns:
- true, if the read was successful
-
getReadString
Returns the read string, if available- Returns:
- read string or null
-
getImage
public android.graphics.Bitmap getImage()Returns the image for this result- Returns:
- the result image Bitmap
-
getImageData
public byte[] getImageData()Returns the image as byte array for this result- Returns:
- the result image as byte array
-
getImageGraphics
Returns the SVG XML string for this result- Returns:
- the SVG XML string or null
-
getXml
Returns the subresult XML string for this result- Returns:
- the subresult XML string or null
-
getSymbology
Returns the code symbology of the result- Returns:
Symbologyof the result or null
-
getParsedText
Returns parsed text from the result- Returns:
- parsed text
-
getParsedJSON
Returns parsed text in json format from the result- Returns:
- parsed text in json format
-
getIsGS1
public boolean getIsGS1()GS1 value of the result- Returns:
- true, if the barcode is GS1 standard
-
getResultExtras
-
equals
-
hashCode
public int hashCode()
-