public enum StringEncoding extends Enum<StringEncoding> implements Cacheable
| Modifier and Type | Method and Description |
|---|---|
static StringEncoding |
fromString(String name) |
byte[] |
getCacheKey()
Get a byte array used as a cache key.
|
String |
toString() |
static StringEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringEncoding UTF8
public static final StringEncoding UTF16LE
public static StringEncoding[] values()
for (StringEncoding c : StringEncoding.values()) System.out.println(c);
public static StringEncoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static StringEncoding fromString(String name)
public byte[] getCacheKey()
CacheablegetCacheKey in interface Cacheablepublic String toString()
toString in class Enum<StringEncoding>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.