Package | ardisia.components.barCode.specifications |
Class | public class Int25 |
Inheritance | Int25 Object |
Numeric only. Must be an even number of digits. 0s will be added if an odd number is encoded.
The optional checksum is added as the last digit, which is calculated in the same way as UPC checksums.
If the number is not even, adds a zero.
This class does not automatically add the quiet zone. Developers should keep in mind that the quiet zone should be at least ten times the thinnest line width.
Method | Defined By | ||
---|---|---|---|
encodeForINT25(data:String):String [static]
Returns the encoded INT25 string. | Int25 |
Method | Defined By | ||
---|---|---|---|
getCheckDigit(data:String):String [static]
Calculates and returns the check digit. | Int25 |
encodeForINT25 | () | method |
public static function encodeForINT25(data:String):String
Returns the encoded INT25 string.
Parameters
data:String — the String to encode
|
String — a String of encoded data
|
getCheckDigit | () | method |
protected static function getCheckDigit(data:String):String
Calculates and returns the check digit. Assumes that the string has been sanitized.
Parameters
data:String |
String — a String of the check digit
|