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.
[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.