public static enum ScannerConfig.AutoCharacterSetPreference extends java.lang.Enum<ScannerConfig.AutoCharacterSetPreference>
Example Usage: new AutoCharacterSetPreference[]{AutoCharacterSetPreference.GB2312, AutoCharacterSetPreference.UTF_8};
Enum Constant and Description |
---|
GB2312
Select GB2312 as a character set.
|
UTF_8
Select UTF-8 as a character set.
|
Modifier and Type | Method and Description |
---|---|
static ScannerConfig.AutoCharacterSetPreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScannerConfig.AutoCharacterSetPreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScannerConfig.AutoCharacterSetPreference UTF_8
public static final ScannerConfig.AutoCharacterSetPreference GB2312
public static ScannerConfig.AutoCharacterSetPreference[] values()
for (ScannerConfig.AutoCharacterSetPreference c : ScannerConfig.AutoCharacterSetPreference.values()) System.out.println(c);
public static ScannerConfig.AutoCharacterSetPreference valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null