Serializable, Comparable<BaseEncoder>public enum BaseEncoder extends Enum<BaseEncoder>
| Enum Constant | Description |
|---|---|
BASE64 |
|
BASE64_MIME |
|
BASE64_MIME_NP |
|
BASE64_NP |
|
BASE64_URL |
|
BASE64_URL_NP |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
decode(String encoded) |
|
String |
encode(byte[] message) |
|
static BaseEncoder |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static BaseEncoder[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseEncoder BASE64
public static final BaseEncoder BASE64_NP
public static final BaseEncoder BASE64_URL
public static final BaseEncoder BASE64_URL_NP
public static final BaseEncoder BASE64_MIME
public static final BaseEncoder BASE64_MIME_NP
public static BaseEncoder[] values()
for (BaseEncoder c : BaseEncoder.values()) System.out.println(c);
public static BaseEncoder 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 String encode(byte[] message)
public byte[] decode(String encoded)
Copyright © 2018. All rights reserved.