public class Base64
extends java.lang.Object
Constructor and Description |
---|
Base64() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(java.lang.String string)
Decodes the supplied Base-64 encoded string.
|
static java.lang.String |
encode(byte[] bytes)
Base-64 encodes the supplied block of data.
|
public static java.lang.String encode(byte[] bytes)
bytes
- The block of data that is to be Base-64 encoded.String
containing the encoded data.public static byte[] decode(java.lang.String string)
string
- The Base-64 encoded string that is to be decoded.byte[]
containing the decoded data block.