com.google.zxing
Enum EncodeHintType

java.lang.Object
  extended by java.lang.Enum<EncodeHintType>
      extended by com.google.zxing.EncodeHintType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EncodeHintType>

public enum EncodeHintType
extends java.lang.Enum<EncodeHintType>

These are a set of hints that you may pass to Writers to specify their behavior.

Author:
dswitkin@google.com (Daniel Switkin)

Enum Constant Summary
CHARACTER_SET
          Specifies what character encoding to use where applicable (type String)
ERROR_CORRECTION
          Specifies what degree of error correction to use, for example in QR Codes (type Integer).
 
Method Summary
static EncodeHintType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EncodeHintType[] 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

ERROR_CORRECTION

public static final EncodeHintType ERROR_CORRECTION
Specifies what degree of error correction to use, for example in QR Codes (type Integer).


CHARACTER_SET

public static final EncodeHintType CHARACTER_SET
Specifies what character encoding to use where applicable (type String)

Method Detail

values

public static EncodeHintType[] 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 (EncodeHintType c : EncodeHintType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EncodeHintType 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