Package com.google.zxing.common
Enum Class CharacterSetECI
- All Implemented Interfaces:
Serializable
,Comparable<CharacterSetECI>
,Constable
Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1
of ISO 18004.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<String, CharacterSetECI> private final String[]
private static final Map
<Integer, CharacterSetECI> private final int[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CharacterSetECI
(int value) private
CharacterSetECI
(int[] values, String... otherEncodingNames) private
CharacterSetECI
(int value, String... otherEncodingNames) -
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterSetECI
getCharacterSetECI
(Charset charset) static CharacterSetECI
static CharacterSetECI
getCharacterSetECIByValue
(int value) int
getValue()
static CharacterSetECI
Returns the enum constant of this class with the specified name.static CharacterSetECI[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Cp437
-
ISO8859_1
-
ISO8859_2
-
ISO8859_3
-
ISO8859_4
-
ISO8859_5
-
ISO8859_6
-
ISO8859_7
-
ISO8859_8
-
ISO8859_9
-
ISO8859_10
-
ISO8859_11
-
ISO8859_13
-
ISO8859_14
-
ISO8859_15
-
ISO8859_16
-
SJIS
-
Cp1250
-
Cp1251
-
Cp1252
-
Cp1256
-
UnicodeBigUnmarked
-
UTF8
-
ASCII
-
Big5
-
GB18030
-
EUC_KR
-
-
Field Details
-
VALUE_TO_ECI
-
NAME_TO_ECI
-
values
private final int[] values -
otherEncodingNames
-
-
Constructor Details
-
CharacterSetECI
private CharacterSetECI(int value) -
CharacterSetECI
-
CharacterSetECI
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
getCharset
-
getCharacterSetECI
- Parameters:
charset
- Java character set object- Returns:
- CharacterSetECI representing ECI for character encoding, or null if it is legal but unsupported
-
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
-