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