com.sap.ip.me.api.pios.symbology
Class Code39

java.lang.Object
  extended bycom.sap.ip.me.api.pios.symbology.Symbology
      extended bycom.sap.ip.me.api.pios.symbology.SymbologyLinear
          extended bycom.sap.ip.me.api.pios.symbology.Code39

public final class Code39
extends SymbologyLinear

Represents the Code 39 Symbology.

Code 39 is widely used in industrial, medical and government applications, including photo finishing, high speed sorting, inventory handling, aluminum, electronics, telecommunications and furniture.

Aliases:
USD-3, 3 of 9, Code 3-of-9, Code 3 from 9, LOGMARS
Code Type:
Discrete
Character Set:
Full alpha-numeric character set and - . * $ / + % SPACE
Check Character:
Optional
Barcode Example:
     Code 39 Sample

The following options can be set for this symbology:

Code set:
Required: optional
Used by: Printer, Scanner
Default: STANDARD
Possible values:
STANDARD:
Supports the following 44 characters: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ - . * $ / + % SPACE
FULLASCII:
Supports the whole ASCII character set.
Check Digit:
Required: optional
Used by: Printer, Scanner
Default: No check digit
Possible values:
CHECK_DIGIT_MOD43:
A check character is not required for Code 39. However, the use of a check character significantly enhances data security. When used, the check character is positioned immediately following the final data character.
CHECK_DIGIT_FRENCH_CIP:
Used in France by the "Club Inter Pharmaceutique" it contains only numeric digits and has a length of 6 characters plus a modulo 11 check digit.
Check digit transmit:
Required: optional
Used by: Scanner
Default: No transmit
Possible values:
CHECK_DIGIT_TRANSMIT:
Determines whether or not the check digit in a barcode is sent as part of the data. Requires one of the check digit options to be set.

The default constructor for this class creates a Code 39 symbology with the following options:
    STANDARD

Example: Create a Code39 symbology for the printer with the Standard code set and French CIP check digit.
 
 	...
 	Code39 code39 = new Code39(Code39.STANDARD | Code39.CHECK_DIGIT_FRENCH_CIP);
	...
 
 

Since:
MI 2.5
Author:
Abaco

Field Summary
static long CHECK_DIGIT_FRENCH_CIP
          Constant to indicate Code39 check digit French CIP option.
static long CHECK_DIGIT_MOD43
          Constant to indicate Code39 check digit Mod43 option.
static long CHECK_DIGIT_TRANSMIT
          Constant to indicate reporting of the bar code check digit.
static long FULLASCII
          Constant to indicate Code39 full ascii option.
static long STANDARD
          Constant to indicate Code39 standard option.
 
Fields inherited from class com.sap.ip.me.api.pios.symbology.Symbology
options
 
Constructor Summary
Code39()
          Constructs a new Code39 object.
Code39(long options)
          Constructs a new Code39 object with the symbology options provided.
 
Method Summary
 java.lang.String getName()
          Returns the symbology name.
 int getType()
          Returns the symbology type.
 void setOptions(long options)
          Sets the configured options for the symbology.
 
Methods inherited from class com.sap.ip.me.api.pios.symbology.Symbology
getOptions, validateOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD

public static final long STANDARD
Constant to indicate Code39 standard option.

See Also:
Constant Field Values

FULLASCII

public static final long FULLASCII
Constant to indicate Code39 full ascii option.

See Also:
Constant Field Values

CHECK_DIGIT_MOD43

public static final long CHECK_DIGIT_MOD43
Constant to indicate Code39 check digit Mod43 option.

See Also:
Constant Field Values

CHECK_DIGIT_FRENCH_CIP

public static final long CHECK_DIGIT_FRENCH_CIP
Constant to indicate Code39 check digit French CIP option.

See Also:
Constant Field Values

CHECK_DIGIT_TRANSMIT

public static final long CHECK_DIGIT_TRANSMIT
Constant to indicate reporting of the bar code check digit.

See Also:
Constant Field Values
Constructor Detail

Code39

public Code39()
Constructs a new Code39 object.


Code39

public Code39(long options)
       throws InvalidSymbologyException
Constructs a new Code39 object with the symbology options provided.

The options value is either one of the option constants defined by this class, or must be built by bitwise OR'ing together (that is, using the long "|" operator) two or more of those option constants.

Parameters:
options - the symbology options mask
Throws:
InvalidSymbologyException - thrown if the received options are invalid for this symbology
Method Detail

getName

public java.lang.String getName()
Returns the symbology name.

Specified by:
getName in class Symbology
Returns:
The name of the symbology.

getType

public int getType()
Returns the symbology type.

Specified by:
getType in class Symbology
Returns:
The type of the symbology.
See Also:
SymbologyType

setOptions

public void setOptions(long options)
                throws InvalidSymbologyException
Sets the configured options for the symbology.

Specified by:
setOptions in class Symbology
Parameters:
options - the symbology options mask
Throws:
InvalidSymbologyException - thrown if the received options are invalid for this symbology


Copyright © 2005 SAP AG. All Rights Reserved.