nl.knowledgeplaza.util.barcode
Class UPC12Util
java.lang.Object
nl.knowledgeplaza.util.barcode.UPC12Util
public class UPC12Util
- 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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
UPC12Util
public UPC12Util()
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.