com.mindbright.util
public final class Base64 extends java.lang.Object
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] data)
Decode a given base64-blob
|
static byte[] |
decode(byte[] encoded,
int offset,
int length)
Decode a given base64-blob
|
static byte[] |
encode(byte[] data)
Encode a binary blob of data
|
static byte[] |
encode(byte[] data,
int offset,
int length)
Encode a binary blob of data
|
public static byte[] encode(byte[] data)
data - the data to encodepublic static byte[] encode(byte[] data,
int offset,
int length)
data - array containing the data to encodeoffset - offset of start of data in arraylength - how many bytes of data to encodepublic static byte[] decode(byte[] data)
data - the base64-encoded blob to decodepublic static byte[] decode(byte[] encoded,
int offset,
int length)
encoded - array containing the base64-encoded blob to
decodeoffset - offset of data to decode in arraylength - length of data to decode