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 and Description |
|---|
DecoderResult(byte[] rawBytes, String
|
DecoderResult(byte[] rawBytes, String
|
| Modifier and Type | Method and Description |
|---|---|
List |
getByteSegments()
|
String |
getECLevel()
|
Integer |
getErasures()
|
Integer |
getErrorsCorrected()
|
Object |
getOther()
|
byte[] |
getRawBytes()
|
int |
getStructuredAppendParity()
|
int |
getStructuredAppendSequenceNumber()
|
String |
getText()
|
boolean |
hasStructuredAppend()
|
void |
setErasures(Integer
|
void |
setErrorsCorrected(Integer
|
void |
setOther(Object
|
public DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel) public byte[] getRawBytes()
public StringgetText()
public List<byte[]> getByteSegments()
public StringgetECLevel()
public IntegergetErrorsCorrected()
public void setErrorsCorrected(IntegererrorsCorrected)
public IntegergetErasures()
public void setErasures(Integererasures)
public ObjectgetOther()
public void setOther(Objectother)
public boolean hasStructuredAppend()
public int getStructuredAppendParity()
public int getStructuredAppendSequenceNumber()