public enum Encoding extends Enum<Encoding>
Enum Constant and Description |
---|
BASE64
Base 64 Encoding.
|
COMPRESS
Compressed encoding.
|
ENCRYPT
Encrypted encoding.
|
NONE
No encoding.
|
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the encoding byte value.
|
static Encoding |
parse(byte byteValue)
Returns the encoding that corresponds to an encoding byte value.
|
static Encoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encoding NONE
public static final Encoding ENCRYPT
public static final Encoding COMPRESS
public static final Encoding BASE64
public static Encoding[] values()
for (Encoding c : Encoding.values()) System.out.println(c);
public static Encoding 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 byte byteValue()
public static Encoding parse(byte byteValue)
byteValue
- the byte value.Copyright © 2016 Push Technology Ltd. All Rights Reserved.