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
      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
      Full
      Encode 8 bit values
      TEXT
      UUses Text encoding.
    • Method Summary

      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

    • 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()