pops.ale.codec
Class Sgtin96Codec
java.lang.Object
pops.ale.codec.EpcCodec
pops.ale.codec.Sgtin96Codec
public class Sgtin96Codec
- extends EpcCodec
Field Summary |
(package private) byte[] |
tagData
|
Methods inherited from class pops.ale.codec.EpcCodec |
appendUri, ByteArrayToInt, ByteArrayToLong, byteToInt, byteToLong, convertToRawDecUri, convertToRawHexUri, decodeHeader, extractLongField, getCompanyPrefix, getEncodingScheme, getFilterValue, getItemReference, getPartition, getSerialNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tagData
byte[] tagData
Sgtin96Codec
public Sgtin96Codec()
- default.
Constructor
Sgtin96Codec
public Sgtin96Codec(PartitionTable partitionTable)
- Constructor
- Parameters:
partitionTable
-
decodeTagData
public void decodeTagData(byte[] tagData)
getPartition
public final byte getPartition()
getFilterValue
public final byte getFilterValue()
getCompanyPrefix
public long getCompanyPrefix()
getItemReference
public int getItemReference()
getSerialNumber
public long getSerialNumber()
getPureUri
public java.lang.String getPureUri()
- Converter to build an epc pure URI representation.
- Specified by:
getPureUri
in class EpcCodec
- Returns:
- epc pure URI representation.
getTagUri
public java.lang.String getTagUri()
- Converter to build an epc tag URI representation.
- Specified by:
getTagUri
in class EpcCodec
- Returns:
- epc tag URI representation.
getRawDecUri
public java.lang.String getRawDecUri()
getRawHexUri
public java.lang.String getRawHexUri()
main
public static void main(java.lang.String[] args)
stringToArrayOfBytes
public static byte[] stringToArrayOfBytes(java.lang.String data)
dumpByteArray
public static void dumpByteArray(byte[] bytes)
testCase
public static void testCase()
testUnit
public static void testUnit(java.lang.String bytes)