Packageardisia.components.barCode.specifications
Classpublic class Int25
InheritanceInt25 Inheritance Object

Interleaved 2 of 5. See http://en.wikipedia.org/wiki/Interleaved_2_of_5

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.



Public Methods
 MethodDefined By
  
encodeForINT25(data:String):String
[static] Returns the encoded INT25 string.
Int25
Protected Methods
 MethodDefined By
  
getCheckDigit(data:String):String
[static] Calculates and returns the check digit.
Int25
Method Detail
encodeForINT25()method
public static function encodeForINT25(data:String):String

Returns the encoded INT25 string.

Parameters

data:String — the String to encode

Returns
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

Returns
String — a String of the check digit