public enum Encoding extends Enum<Encoding>
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(String plainText) |
String |
getString(byte[] decrypt) |
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 ASCII
public static final Encoding UTF8
public static final Encoding Unicode
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[] getBytes(String plainText)
public String getString(byte[] decrypt)
Copyright © 2012. All Rights Reserved.