Package com.aspose.barcode.generation
Enum DataMatrixEncodeMode
- java.lang.Object
-
- java.lang.Enum<DataMatrixEncodeMode>
-
- com.aspose.barcode.generation.DataMatrixEncodeMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataMatrixEncodeMode>
public enum DataMatrixEncodeMode extends java.lang.Enum<DataMatrixEncodeMode>
DataMatrix encoder's encoding mode, default to AUTO
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANSIX12
Uses ANSI X12 encoding.ASCII
Encodes one alphanumeric or two numeric characters per byteAUTO
Automatically pick up the best encode mode for datamatrix encodingC40
Uses C40 encoding.CUSTOM
Encode with the encoding specified in BarCodeBuilder.CodeTextEncodingEDIFACT
Uses EDIFACT encoding.EXTENDED_CODETEXT
ExtendedCodetext mode allows to manually switch encodation schemes in codetext.FULL
Encode 8 bit valuesTEXT
UUses TEXT encoding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static DataMatrixEncodeMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataMatrixEncodeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final DataMatrixEncodeMode AUTO
Automatically pick up the best encode mode for datamatrix encoding
-
ASCII
public static final DataMatrixEncodeMode ASCII
Encodes one alphanumeric or two numeric characters per byte
-
FULL
public static final DataMatrixEncodeMode FULL
Encode 8 bit values
-
CUSTOM
public static final DataMatrixEncodeMode CUSTOM
Encode with the encoding specified in BarCodeBuilder.CodeTextEncoding
-
C40
public static final DataMatrixEncodeMode C40
Uses C40 encoding. Encodes Upper-case alphanumeric, Lower case and special characters
-
TEXT
public static final DataMatrixEncodeMode TEXT
UUses TEXT encoding. Encodes Lower-case alphanumeric, Upper case and special characters
-
EDIFACT
public static final DataMatrixEncodeMode EDIFACT
Uses EDIFACT encoding. Uses six bits per character, encodes digits, upper-case letters, and many punctuation marks, but has no support for lower-case letters.
-
ANSIX12
public static final DataMatrixEncodeMode ANSIX12
Uses ANSI X12 encoding.
-
EXTENDED_CODETEXT
public static final DataMatrixEncodeMode EXTENDED_CODETEXT
ExtendedCodetext mode allows to manually switch encodation schemes in codetext. Format : "\Encodation_scheme_name:text\Encodation_scheme_name:text". Allowed encodation schemes are: EDIFACT, ANSIX12, ASCII, C40, Text, Auto. Extended codetext example: "\ansix12:ANSIX12TEXT\ascii:backslash must be \\ doubled\edifact:EdifactEncodedText" All backslashes (\) must be doubled in text. This sample shows how to do codetext in Extended Mode:
com.aspose.barcode.generation.BarcodeGenerator generator = new com.aspose.barcode.generation.BarcodeGenerator(EncodeTypes.DATA_MATRIX); generator.setCodeText("\\ansix12:ANSIX12TEXT\\ascii:backslash must be \\\\ doubled\\edifact:EdifactEncodedText"); generator.getParameters().getBarcode().getDataMatrix().setDataMatrixEncodeMode(DataMatrixEncodeMode.EXTENDED_CODETEXT); generator.getParameters().getBarcode().getCodeTextParameters().setTwoDDisplayText("My Text"); generator.save("test.png");
-
-
Method Detail
-
values
public static DataMatrixEncodeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataMatrixEncodeMode c : DataMatrixEncodeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataMatrixEncodeMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-