public enum Base32 extends Enum<Base32>
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] b32)
Decodes the given base 32 encoded bytes.
|
static byte[] |
decode(String b32)
Decodes the given base 32 encoded string, skipping carriage returns, line
feeds and spaces as needed.
|
static byte[] |
encode(byte[] bytes) |
static String |
encodeAsString(byte... bytes) |
static Base32 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Base32[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Base32[] values()
for (Base32 c : Base32.values()) System.out.println(c);
public static Base32 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 String encodeAsString(byte... bytes)
bytes
- the bytes.public static byte[] encode(byte[] bytes)
bytes
- the bytes.public static byte[] decode(String b32)
b32
- the base 32 encoded string.public static byte[] decode(byte[] b32)
b32
- the base 32 encoded bytes.Copyright © 2019. All rights reserved.