public class Base64
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(java.lang.String encdata)
Decodes a specified base64-encoded String and returns the resulting bytes.
|
static java.lang.String |
encode(byte[] data)
Returns a String of base64-encoded characters to represent the specified
data array.
|
public static java.lang.String encode(byte[] data)
data
- The array of bytes to encode.public static byte[] decode(java.lang.String encdata)
encdata
- A String containing base64-encoded characters.