Class DecoderResult



  • public final class DecoderResult
    extends Object

    Encapsulates the result of decoding a matrix of bits. This typically applies to 2D barcode formats. For now it contains the raw bytes obtained, as well as a String interpretation of those bytes, if applicable.

    • Constructor Detail

      • DecoderResult

        public DecoderResult(byte[] rawBytes,
                             String text,
                             List<byte[]> byteSegments,
                             String ecLevel)
      • DecoderResult

        public DecoderResult(byte[] rawBytes,
                             String text,
                             List<byte[]> byteSegments,
                             String ecLevel,
                             int saSequence,
                             int saParity)
    • Method Detail

      • getRawBytes

        public byte[] getRawBytes()
      • getText

        public String getText()
      • getByteSegments

        public List<byte[]> getByteSegments()
      • getECLevel

        public String getECLevel()
      • getErrorsCorrected

        public Integer getErrorsCorrected()
      • setErrorsCorrected

        public void setErrorsCorrected(Integer errorsCorrected)
      • getErasures

        public Integer getErasures()
      • setErasures

        public void setErasures(Integer erasures)
      • getOther

        public Object getOther()
      • setOther

        public void setOther(Object other)
      • hasStructuredAppend

        public boolean hasStructuredAppend()
      • getStructuredAppendParity

        public int getStructuredAppendParity()
      • getStructuredAppendSequenceNumber

        public int getStructuredAppendSequenceNumber()