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 ASCII
Big5
Cp1250
Cp1251
Cp1252
Cp1256
Cp437
EUC_KR
GB18030
ISO8859_1
ISO8859_10
ISO8859_11
ISO8859_13
ISO8859_14
ISO8859_15
ISO8859_16
ISO8859_2
ISO8859_3
ISO8859_4
ISO8859_5
ISO8859_6
ISO8859_7
ISO8859_8
ISO8859_9
SJIS
UnicodeBigUnmarked
UTF8
-
Method Summary
Modifier and Type Method Description static CharacterSetECI
getCharacterSetECIByName(String name)
static CharacterSetECI
getCharacterSetECIByValue(int value)
int
getValue()
static CharacterSetECI
valueOf(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:
CharacterSetECI
representing 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
-