nl.knowledgeplaza.util.barcode
Class EAN13Util

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

public class EAN13Util
extends 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 String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
EAN13Util()
           
 
Method Summary
static int determineCheckDigit(String code)
          "modulus 10 check digit"
static boolean validate(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 String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

EAN13Util

public EAN13Util()
Method Detail

determineCheckDigit

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

Parameters:
code -
Returns:

validate

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

Parameters:
code -
Returns:


Copyright © 2012 KnowledgePlaza. All Rights Reserved.