Driver License Parser Library for Java
This project demonstrates how to use Driver License Parser library for Java from IDScan.net.
Usage
- Create
DLParser
object.
DLParser parser = new DLParser();
- Setup License Key. For the License Key you need to call
setup(String)
. Encode license key as a Base64 string.
try {
parser.setup("** LICENSE_KEY **");
} catch(DLParserException e) {
// TODO: handle the error.
}
- Parse the data. For parsing data you need to call
parse(byte[])
method.
try {
DLResult res = parser.parse(data);
} catch(DLParserException | UnsupportedEncodingException e) {
// TODO: handle the error.
}
You will find a complete example of using the library in the Main.java
.