Class DecoderResult


  • public final class DecoderResult
    extends java.lang.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,
                             java.lang.String text,
                             java.util.List<byte[]> byteSegments,
                             java.lang.String ecLevel)
      • DecoderResult

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

      • getRawBytes

        public byte[] getRawBytes()
      • getText

        public java.lang.String getText()
      • getByteSegments

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

        public java.lang.String getECLevel()
      • getErrorsCorrected

        public java.lang.Integer getErrorsCorrected()
      • setErrorsCorrected

        public void setErrorsCorrected​(java.lang.Integer errorsCorrected)
      • getErasures

        public java.lang.Integer getErasures()
      • setErasures

        public void setErasures​(java.lang.Integer erasures)
      • getOther

        public java.lang.Object getOther()
      • setOther

        public void setOther​(java.lang.Object other)
      • hasStructuredAppend

        public boolean hasStructuredAppend()
      • getStructuredAppendParity

        public int getStructuredAppendParity()
      • getStructuredAppendSequenceNumber

        public int getStructuredAppendSequenceNumber()