public class ZBase32
extends java.lang.Object
| Constructor and Description |
|---|
ZBase32() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] data)
Method the decode a z-base32 encoded byte[] array into into the original bytes.
|
static byte[] |
decode(byte[] data,
int numberOfBits)
Method the decode a byte[] z-base32 encoded array into the original bytes when
the exact number of bits is known.
|
static byte[] |
decode(java.lang.String data)
Method the decode a z-base32 encoded String into into the original bytes.
|
static byte[] |
decode(java.lang.String data,
int numberOfBits)
Method the decode a byte[] z-base32 String into the original bytes when
the exact number of bits is known.
|
static byte[] |
encode(byte[] data)
Method the encode a byte[] array into z-base32 encoding.
|
static byte[] |
encode(byte[] data,
int numberOfBits)
Method the encode a byte[] array into z-base32 encoding when
the exact number of bits is known.
|
static java.lang.String |
encodeToString(byte[] data)
Method to encode a byte[] array into a z-base32 encoded string.
|
static java.lang.String |
encodeToString(byte[] data,
int numberOfBits)
Method to encode a byte[] array into a z-base32 encoded string when
the exact number of bits is known.
|
public static byte[] encode(byte[] data)
data - the data to encode.public static byte[] encode(byte[] data,
int numberOfBits)
data - the data to encode.numberOfBits - the number of bits to use in the input data.public static java.lang.String encodeToString(byte[] data)
data - the data to encode.public static java.lang.String encodeToString(byte[] data,
int numberOfBits)
data - the data to encode.numberOfBits - the number of bits to use in the input data.public static byte[] decode(byte[] data,
int numberOfBits)
throws java.lang.IllegalArgumentException
data - the z-base32 data to decode.numberOfBits - the number of bits to use in the input data.java.lang.IllegalArgumentException - if invalid z-base32 data was specificed.public static byte[] decode(byte[] data)
throws java.lang.IllegalArgumentException
data - the z-base32 data to decode.java.lang.IllegalArgumentException - if invalid z-base32 data was specificed.public static byte[] decode(java.lang.String data,
int numberOfBits)
throws java.lang.IllegalArgumentException
data - the z-base32 string to decode.numberOfBits - the number of bits to use in the input data.java.lang.IllegalArgumentException - if invalid z-base32 data was specificed.public static byte[] decode(java.lang.String data)
throws java.lang.IllegalArgumentException
data - the z-base32 string to decode.java.lang.IllegalArgumentException - if invalid z-base32 data was specificed.