Package com.aspose.barcode.generation
Enum Class Code128EncodeMode
- All Implemented Interfaces:
Serializable,Comparable<Code128EncodeMode>,Constable
Encoding mode for Code128 barcodes.
Code 128 specification.
Following code demonstrates how to generate code 128 with different encodings//Generate code 128 with ISO 15417 encoding BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890"); generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.AUTO); generator.save(filePath, BarCodeImageFormat.PNG); //Generate code 128 only with Codeset A encoding BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.CODE_128, "ABCD1234567890"); generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.CODE_A); generator.save(filePath, BarCodeImageFormat.PNG);
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEncode codetext in classic ISO 15417 mode.Encode codetext only in 128A codeset.Encode codetext only in 128A and 128B codesets.Encode codetext only in 128A and 128C codesets.Encode codetext only in 128B codeset.Encode codetext only in 128B and 128C codesets.Encode codetext only in 128C codeset. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static Code128EncodeModevalueOf(int value) Returns the enum constant of this class with the specified name.static Code128EncodeModeReturns the enum constant of this class with the specified name.static Code128EncodeMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
-
CODE_A
Encode codetext only in 128A codeset.
-
CODE_B
Encode codetext only in 128B codeset.
-
CODE_C
Encode codetext only in 128C codeset.
-
CODE_AB
Encode codetext only in 128A and 128B codesets.
-
CODE_AC
Encode codetext only in 128A and 128C codesets.
-
CODE_BC
Encode codetext only in 128B and 128C codesets.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-