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.
构造器和说明 |
---|
DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel) |
DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel,
int saSequence,
int saParity) |
限定符和类型 | 方法和说明 |
---|---|
List<byte[]> |
getByteSegments() |
String |
getECLevel() |
Integer |
getErasures() |
Integer |
getErrorsCorrected() |
Object |
getOther() |
byte[] |
getRawBytes() |
int |
getStructuredAppendParity() |
int |
getStructuredAppendSequenceNumber() |
String |
getText() |
boolean |
hasStructuredAppend() |
void |
setErasures(Integer erasures) |
void |
setErrorsCorrected(Integer errorsCorrected) |
void |
setOther(Object other) |
public DecoderResult(byte[] rawBytes, String text, List<byte[]> byteSegments, String ecLevel)
public byte[] getRawBytes()
public String getText()
public List<byte[]> getByteSegments()
public String getECLevel()
public Integer getErrorsCorrected()
public void setErrorsCorrected(Integer errorsCorrected)
public Integer getErasures()
public void setErasures(Integer erasures)
public Object getOther()
public void setOther(Object other)
public boolean hasStructuredAppend()
public int getStructuredAppendParity()
public int getStructuredAppendSequenceNumber()
Copyright © 2007–2014. All rights reserved.