public enum ByteSourceCodec extends Enum<ByteSourceCodec> implements NamedEnum
| Enum Constant and Description |
|---|
BASE64
Encode base-64.
|
GZ
Encode using gz.
|
GZ_BASE64
Encode using gz then base-64.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteSourceCodec |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static ByteSourceCodec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteSourceCodec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteSourceCodec BASE64
public static final ByteSourceCodec GZ
public static final ByteSourceCodec GZ_BASE64
public static ByteSourceCodec[] values()
for (ByteSourceCodec c : ByteSourceCodec.values()) System.out.println(c);
public static ByteSourceCodec 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 ByteSourceCodec of(String name)
Parsing handles the mixed case form produced by toString() and
the upper and lower case variants of the enum constant name.
name - the name to parseIllegalArgumentException - if the name is not knownpublic String toString()
toString in class Enum<ByteSourceCodec>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.