Class EpcUtility
java.lang.Object
com.persequor.saga.modules.dpp.gs1.EpcUtility
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringencodeLgtinEpc(String gtin, String batch, int companyPrefixLength) Encode a GTIN and batch into an LGTIN EPC.static StringencodeSgtinEpc(String gtin, String serial, int companyPrefixLength) Encode a GTIN and serial into an SGTIN EPC.static StringgetLgtinEpcClass(String gtin, int companyPrefixLength) 
- 
Method Details- 
encodeLgtinEpcEncode a GTIN and batch into an LGTIN EPC.- Parameters:
- gtin- The GTIN to encode (12, 13, or 14 digits)
- batch- The batch to encode
- companyPrefixLength- The length of the company prefix
- Returns:
- The LGTIN EPC
 
- 
encodeSgtinEpcEncode a GTIN and serial into an SGTIN EPC.- Parameters:
- gtin- The GTIN to encode (12, 13, or 14 digits)
- serial- The serial to encode
- companyPrefixLength- The length of the company prefix
- Returns:
- The SGTIN EPC
 
- 
getLgtinEpcClass
 
-