Package io.scanbot.sdk.barcode
Class BarcodeDocumentParser
- java.lang.Object
-
- io.scanbot.sdk.barcode.BarcodeDocumentParser
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class BarcodeDocumentParser extends java.lang.Object implements java.lang.AutoCloseableAPI for parsing barcode documents. Required licence feature(s): BarcodeScanner.
-
-
Constructor Summary
Constructors Constructor Description BarcodeDocumentParser(java.util.List<BarcodeDocumentFormat> acceptedFormats)Constructs BarcodeDocumentParser with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources held by the object.protected voidfinalize()BarcodeDocumentParserResultparse(java.lang.String rawString)Parse the given string as a barcode document.
-
-
-
Constructor Detail
-
BarcodeDocumentParser
public BarcodeDocumentParser(java.util.List<BarcodeDocumentFormat> acceptedFormats) throws LicenseException
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 Detail
-
parse
public BarcodeDocumentParserResult parse(java.lang.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 interfacejava.lang.AutoCloseable
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-