public class DecodedResult
extends java.lang.Object
Constructor and Description |
---|
DecodedResult(int imageWidth,
int imageHeight,
byte[] resultByte,
byte[] imageDebug,
int returnCode,
long codeType,
long codeSubType,
long executionTime)
Instantiate the DecodedResult object.
|
Modifier and Type | Method and Description |
---|---|
long |
getCodeSubType()
The decoded result subtype, as defined in
SmartScanner code constants. |
long |
getCodeType()
The decoded result type, as defined in
SmartScanner code constants. |
boolean |
getErrorParsingQrCode()
Get the information about the parsing of qr-code.
|
byte[] |
getImageDebug()
The decoded image as a byte array.
|
int |
getImageHeight()
The height of the decoded image
|
int |
getImageWidth()
The width of the decoded image
|
byte[] |
getResultByte()
The result itself as a byte array.
|
java.lang.String |
getResultString()
The result itself as a String.
|
int |
getReturnCode()
The result of the decode processing.
|
void |
setErrorParsingQrCode(boolean errorParsingQrCode)
Set the information about the parsing of qr-code.
|
void |
setImageDebug(byte[] image)
Sets the image of the result
|
void |
setResultString(java.lang.String resultString)
Set the result itself as string
|
public DecodedResult(int imageWidth, int imageHeight, byte[] resultByte, byte[] imageDebug, int returnCode, long codeType, long codeSubType, long executionTime)
imageWidth
- intimageHeight
- intresultByte
- byte[]imageDebug
- byte[]returnCode
- intcodeType
- longcodeSubType
- longexecutionTime
- longpublic java.lang.String getResultString()
public byte[] getResultByte()
public int getReturnCode()
public byte[] getImageDebug()
public int getImageWidth()
public int getImageHeight()
public long getCodeType()
SmartScanner
code constants.public long getCodeSubType()
SmartScanner
code constants.public void setImageDebug(byte[] image)
public void setResultString(java.lang.String resultString)
public boolean getErrorParsingQrCode()
public void setErrorParsingQrCode(boolean errorParsingQrCode)