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 text,
List<byte[]> byteSegments,
String ecLevel) |
DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel,
int symbologyModifier) |
DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel,
int saSequence,
int saParity) |
DecoderResult(byte[] rawBytes,
String text,
List<byte[]> byteSegments,
String ecLevel,
int saSequence,
int saParity,
int symbologyModifier) |
Modifier and Type | Method and Description |
---|---|
List<byte[]> |
getByteSegments() |
String |
getECLevel() |
Integer |
getErasures() |
Integer |
getErrorsCorrected() |
int |
getNumBits() |
Object |
getOther() |
byte[] |
getRawBytes() |
int |
getStructuredAppendParity() |
int |
getStructuredAppendSequenceNumber() |
int |
getSymbologyModifier() |
String |
getText() |
boolean |
hasStructuredAppend() |
void |
setErasures(Integer erasures) |
void |
setErrorsCorrected(Integer errorsCorrected) |
void |
setNumBits(int numBits) |
void |
setOther(Object other) |
public DecoderResult(byte[] rawBytes, String text, List<byte[]> byteSegments, String ecLevel)
public DecoderResult(byte[] rawBytes, String text, List<byte[]> byteSegments, String ecLevel, int symbologyModifier)
public DecoderResult(byte[] rawBytes, String text, List<byte[]> byteSegments, String ecLevel, int saSequence, int saParity)
public byte[] getRawBytes()
null
if not applicablepublic int getNumBits()
getRawBytes()
are valid; typically 8 times its lengthpublic void setNumBits(int numBits)
numBits
- overrides the number of bits that are valid in getRawBytes()
public String getText()
public List<byte[]> getByteSegments()
null
if not applicablepublic String getECLevel()
null
if not applicablepublic Integer getErrorsCorrected()
null
if not applicablepublic void setErrorsCorrected(Integer errorsCorrected)
public Integer getErasures()
null
if not applicablepublic void setErasures(Integer erasures)
public Object getOther()
public void setOther(Object other)
public boolean hasStructuredAppend()
public int getStructuredAppendParity()
public int getStructuredAppendSequenceNumber()
public int getSymbologyModifier()
Copyright © 2007–2024. All rights reserved.