Package com.google.zxing.common
Enum CharacterSetECI
- All Implemented Interfaces:
Serializable,Comparable<CharacterSetECI>,java.lang.constant.Constable
public enum CharacterSetECI extends Enum<CharacterSetECI>
Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1
of ISO 18004.
- Author:
- Sean Owen
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCIIBig5Cp1250Cp1251Cp1252Cp1256Cp437EUC_KRGB18030ISO8859_1ISO8859_10ISO8859_11ISO8859_13ISO8859_14ISO8859_15ISO8859_16ISO8859_2ISO8859_3ISO8859_4ISO8859_5ISO8859_6ISO8859_7ISO8859_8ISO8859_9SJISUnicodeBigUnmarkedUTF8 -
Method Summary
Modifier and Type Method Description static CharacterSetECIgetCharacterSetECIByName(String name)static CharacterSetECIgetCharacterSetECIByValue(int value)intgetValue()static CharacterSetECIvalueOf(String name)Returns the enum constant of this type with the specified name.static CharacterSetECI[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
getCharacterSetECIByValue
- Parameters:
value- character set ECI value- Returns:
CharacterSetECIrepresenting ECI of given value, or null if it is legal but unsupported- Throws:
FormatException- if ECI value is invalid
-
getCharacterSetECIByName
- Parameters:
name- character set ECI encoding name- Returns:
- CharacterSetECI representing ECI for character encoding, or null if it is legal but unsupported
-