com.aspose.barcode

Enum 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 and Description
      ANSIX12
      Uses ANSI X12 encoding.
      ASCII
      Encodes one alphanumeric or two numeric characters per byte
      AUTO
      Automatically pick up the best encode mode for datamatrix encoding
      C40
      Uses C40 encoding.
      CUSTOM
      Encode with the encoding specified in BarCodeBuilder.CodeTextEncoding
      EDIFACT
      Uses EDIFACT encoding.
      FULL
      Encode 8 bit values
      TEXT
      UUses TEXT encoding.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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

      • 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.
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()