Package io.scanbot.sdk.mrz
Class MrzScannerResult
- java.lang.Object
-
- io.scanbot.sdk.mrz.MrzScannerResult
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class MrzScannerResult extends java.lang.Object implements java.lang.AutoCloseableContainer for result of MRZ scanning attempt.
-
-
Constructor Summary
Constructors Constructor Description MrzScannerResult(boolean success, java.lang.String rawMRZ, GenericDocument document)Constructs MrzScannerResult with the given params.MrzScannerResult(java.lang.String rawMRZ, GenericDocument document)Constructs MrzScannerResult with default parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources (images) held by the object.GenericDocumentgetDocument()Getter for document field.java.lang.StringgetRawMRZ()Getter for rawMRZ field.booleangetSuccess()Getter for success field.
-
-
-
Constructor Detail
-
MrzScannerResult
public MrzScannerResult(boolean success, java.lang.String rawMRZ, GenericDocument document)Constructs MrzScannerResult with the given params.- Parameters:
success- Scanning successful. Default is falserawMRZ- Raw string value of MRZ.document- Generic document containing MRZ data.
-
MrzScannerResult
public MrzScannerResult(java.lang.String rawMRZ, GenericDocument document)Constructs MrzScannerResult with default parameters.- Parameters:
rawMRZ- Raw string value of MRZ.document- Generic document containing MRZ data.
-
-
Method Detail
-
getSuccess
public boolean getSuccess()
Getter for success field. See constructor documentation for more information about the field.- Returns:
- success
-
getRawMRZ
public java.lang.String getRawMRZ()
Getter for rawMRZ field. See constructor documentation for more information about the field.- Returns:
- rawMRZ
-
getDocument
public GenericDocument getDocument()
Getter for document field. See constructor documentation for more information about the field.- Returns:
- document
-
close
public void close()
Closes native resources (images) held by the object.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-