com.antelmann.mgmt
Class MgmtUtils
java.lang.Object
com.antelmann.mgmt.MgmtUtils
public class MgmtUtils
- extends Object
- Author:
- Holger Antelmann
|
Method Summary |
static int |
calculateEANChecksum(String codeWithoutCheckDigit)
takes both: UPC and EAN codes; must be numeric only |
static boolean |
checkEAN(String code)
takes both: UPC and EAN codes; must be numeric only |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MgmtUtils
public MgmtUtils()
checkEAN
public static boolean checkEAN(String code)
throws IllegalArgumentException
- takes both: UPC and EAN codes; must be numeric only
- Throws:
IllegalArgumentException
calculateEANChecksum
public static int calculateEANChecksum(String codeWithoutCheckDigit)
throws IllegalArgumentException
- takes both: UPC and EAN codes; must be numeric only
- Throws:
IllegalArgumentException
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads