Package | ardisia.components.barCode.specifications |
Class | public class Ean |
Inheritance | Ean Object |
Superset of the UPC 12 digit system created in Europe.
Supports EAN-13 and EAN-8. EAN-13 expects a string length 12 to encode and EAN-8 expects a string of length 7 to encode.
Quiet zone not automatically added.
Method | Defined By | ||
---|---|---|---|
encodeForEAN(data:String, EANcode:String = ean13):String [static]
Returns an EAN encoded string. | Ean |
Method | Defined By | ||
---|---|---|---|
getCheckDigit(data:String, EANcode:String):String [static]
Calculates and returns the check digit. | Ean |
encodeForEAN | () | method |
public static function encodeForEAN(data:String, EANcode:String = ean13):String
Returns an EAN encoded string.
Parameters
data:String — the string to encode
| |
EANcode:String (default = ean13 ) — "ean8" or "ean13" type encoding; default is "ean13"
|
String — a String of encoded data
|
getCheckDigit | () | method |
protected static function getCheckDigit(data:String, EANcode:String):String
Calculates and returns the check digit. Assumes that the string has been sanitized.
Parameters
data:String | |
EANcode:String |
String — a String of the check digit
|