Class ReadResult

java.lang.Object
com.cognex.cmbsdk.readerdevice.ReadResult
All Implemented Interfaces:
Serializable

public class ReadResult extends Object implements Serializable
Represents a read result
See Also:
  • 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

      public String 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

      public String getImageGraphics()
      Returns the SVG XML string for this result
      Returns:
      the SVG XML string or null
    • getXml

      public String getXml()
      Returns the subresult XML string for this result
      Returns:
      the subresult XML string or null
    • getSymbology

      public Symbology getSymbology()
      Returns the code symbology of the result
      Returns:
      Symbology of the result or null
    • getParsedText

      public String getParsedText()
      Returns parsed text from the result
      Returns:
      parsed text
    • getParsedJSON

      public String 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

      public Map<String,String> getResultExtras()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object