public final class Result extends Object
Encapsulates the result of decoding a barcode within an image.
| Constructor and Description |
|---|
Result(String
|
Result(String
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResultPoints(ResultPoint
|
BarcodeFormat |
getBarcodeFormat()
|
byte[] |
getRawBytes()
|
Map |
getResultMetadata()
|
ResultPoint |
getResultPoints()
|
String |
getText()
|
long |
getTimestamp()
|
void |
putAllMetadata(Map
|
void |
putMetadata(ResultMetadataType
|
String |
toString()
|
public Result(Stringtext, byte[] rawBytes, ResultPoint [] resultPoints, BarcodeFormat format)
public Result(Stringtext, byte[] rawBytes, ResultPoint [] resultPoints, BarcodeFormat format, long timestamp)
public StringgetText()
public byte[] getRawBytes()
null
public ResultPoint[] getResultPoints()
public BarcodeFormatgetBarcodeFormat()
BarcodeFormat representing the format of the barcode that was decoded
public Map<ResultMetadataType ,Object > getResultMetadata()
Map mapping
ResultMetadataType keys to values. May be
null. This contains optional metadata about what was detected about the barcode, like orientation.
public void putMetadata(ResultMetadataTypetype, Object value)
public void putAllMetadata(Map<ResultMetadataType ,Object > metadata)
public void addResultPoints(ResultPoint[] newPoints)
public long getTimestamp()
public StringtoString()