Package io.scanbot.sdk.barcode
Class BarcodeDocumentParser
java.lang.Object
io.scanbot.sdk.barcode.BarcodeDocumentParser
- All Implemented Interfaces:
AutoCloseable
API for parsing barcode documents.
Required licence feature(s): BarcodeScanner.
-
Constructor Summary
ConstructorsConstructorDescriptionBarcodeDocumentParser(List<BarcodeDocumentFormat> acceptedFormats) Constructs BarcodeDocumentParser with the given params. -
Method Summary
-
Constructor Details
-
BarcodeDocumentParser
Constructs BarcodeDocumentParser with the given params.- Parameters:
acceptedFormats- The configuration to use for the barcode document parser.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Details
-
parse
public BarcodeDocumentParserResult parse(String rawString) throws InvalidImageRefException, LicenseException Parse the given string as a barcode document.- Parameters:
rawString- The string to parse as a barcode document.- Returns:
- Result of the document parsing.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
close
public void close()Closes native resources held by the object.- Specified by:
closein interfaceAutoCloseable
-
finalize
-