pops.ale.codec
Class Sgtin96Codec

java.lang.Object
  extended by pops.ale.codec.EpcCodec
      extended by pops.ale.codec.Sgtin96Codec

public class Sgtin96Codec
extends EpcCodec


Field Summary
(package private)  byte[] tagData
           
 
Fields inherited from class pops.ale.codec.EpcCodec
boundaryLeftMasks, boundaryRightMasks, boundaryShifts, COMMON_HEADER, MSB_FIRST, MSB_LAST, SGLN_96_HEADER, SGTIN_96_HEADER
 
Constructor Summary
Sgtin96Codec()
          default.
Sgtin96Codec(PartitionTable partitionTable)
          Constructor
 
Method Summary
 void decodeTagData(byte[] tagData)
           
static void dumpByteArray(byte[] bytes)
           
 long getCompanyPrefix()
           
 byte getFilterValue()
           
 int getItemReference()
           
 byte getPartition()
           
 java.lang.String getPureUri()
          Converter to build an epc pure URI representation.
 java.lang.String getRawDecUri()
           
 java.lang.String getRawHexUri()
           
 long getSerialNumber()
           
 java.lang.String getTagUri()
          Converter to build an epc tag URI representation.
static void main(java.lang.String[] args)
           
static byte[] stringToArrayOfBytes(java.lang.String data)
           
static void testCase()
           
static void testUnit(java.lang.String bytes)
           
 
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
 

Field Detail

tagData

byte[] tagData
Constructor Detail

Sgtin96Codec

public Sgtin96Codec()
default. Constructor


Sgtin96Codec

public Sgtin96Codec(PartitionTable partitionTable)
Constructor

Parameters:
partitionTable -
Method Detail

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)