Class Result



  • public final class Result
    extends Object

    Encapsulates the result of decoding a barcode within an image.

    • Method Detail

      • getText

        public String getText()
        Returns:
        raw text encoded by the barcode
      • getRawBytes

        public byte[] getRawBytes()
        Returns:
        raw bytes encoded by the barcode, if applicable, otherwise null
      • getResultPoints

        public ResultPoint[] getResultPoints()
        Returns:
        points related to the barcode in the image. These are typically points identifying finder patterns or the corners of the barcode. The exact meaning is specific to the type of barcode that was decoded.
      • getBarcodeFormat

        public BarcodeFormat getBarcodeFormat()
        Returns:
        BarcodeFormat representing the format of the barcode that was decoded
      • getResultMetadata

        public Map<ResultMetadataType,Object> getResultMetadata()
        Returns:
        Map mapping ResultMetadataType keys to values. May be null. This contains optional metadata about what was detected about the barcode, like orientation.
      • addResultPoints

        public void addResultPoints(ResultPoint[] newPoints)
      • getTimestamp

        public long getTimestamp()
      • toString

        public String toString()