public class

GS1Parser

extends Object
java.lang.Object
   ↳ com.datalogic.decode.utils.GS1Parser

Class Overview

Class managing the parsing of GS1 formatted barcodes.

Summary

Nested Classes
class GS1Parser.GS1Field Class representing a single GS1 field, comprised of application identifier and associated value. 
class GS1Parser.ParsingException Parsing exception thrown in case there is an error during parsing. 
Public Methods
static Map<String, GS1Parser.GS1Field> parse(String barcodeText)
Executes the parsing of an input string that represents a barcode in GS1 format.
static Map<String, GS1Parser.GS1Field> parseDigitalLink(String barcodeUri)
Executes the parsing of an input string that represents an URI in GS1 Digital Link format.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Map<String, GS1Parser.GS1Field> parse (String barcodeText)

Added in revision 32

Executes the parsing of an input string that represents a barcode in GS1 format.

Parameters
barcodeText The GS1 formatted string.
Returns
  • A Map containing as keys the generic application identifiers and as entries the GS1Field objects containing the parsed values.
Throws
GS1Parser.ParsingException In case of parsing errors.

public static Map<String, GS1Parser.GS1Field> parseDigitalLink (String barcodeUri)

Added in revision 36

Executes the parsing of an input string that represents an URI in GS1 Digital Link format.

Parameters
barcodeUri The GS1 Digital Link URI string.
Returns
  • A Map containing as keys the generic application identifiers and as entries the GS1Field objects containing the parsed values.
Throws
GS1Parser.ParsingException In case of parsing errors.