IDScan.net
Search Results for

    Show / Hide Table of Contents

    Driver License Parser Library for Java

    This project demonstrates how to use Driver License Parser library for Java from IDScan.net.

    Usage

    1. Create DLParser object.
    DLParser parser = new DLParser();
    
    1. 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.
    }
    
    1. 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.

    Back to top IDScan.net IDScan.net GitHub