nl.knowledgeplaza.util.barcode
Class UPC12Util

java.lang.Object
  extended by nl.knowledgeplaza.util.barcode.UPC12Util

public class UPC12Util
extends java.lang.Object

EAN13 (GTIN): PPP XXXXXXXXX C - PPP = country prefix - XXXXXXXXX = company prefix and article numbers - C = mod 10 checkdigit Every EAN begins with a 2 or 3 digit prefix which indicates the country of origin. EAN's for companies registered in France, for example, might begin with the prefix 34; Japan's prefix is 49. Since the book industry produces so many products, it has been designated as a country unto itself and has been assigned its own EAN prefix. That prefix is 978 and it signifies Bookland. The Bookland symbol is the bar code of choice in the book industry, because it allows for encodation of ISBN's. When encoding ISBN in an EAN-13 barcode, the ISBN number is preceded by the number 978 and the ISBN check digit is not used. A 5 digit add-on barcode is optional and can contain the price of the book or periodical.

Author:
$Author: toeukpap $

Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
UPC12Util()
           
 
Method Summary
static int determineCheckDigit(java.lang.String code)
          "modulus 10 check digit"
static boolean validate(java.lang.String code)
          "modulus 10 check digit"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

UPC12Util

public UPC12Util()
Method Detail

determineCheckDigit

public static int determineCheckDigit(java.lang.String code)
"modulus 10 check digit"

Parameters:
code -
Returns:

validate

public static boolean validate(java.lang.String code)
"modulus 10 check digit"

Parameters:
code -
Returns:


Copyright © 2010. All Rights Reserved.