org.metastatic.jessie
Class Base64
java.lang.Objectorg.metastatic.jessie.Base64
public final class Base64
extends java.lang.Object
static byte[] | decode(String b64)- Decode a Base-64 string into a byte array.
|
static String | encode(byte[] buf, int tw)- Base64 encode a byte array, returning the returning string.
|
decode
public static byte[] decode(String b64)
throws IOException Decode a Base-64 string into a byte array.
b64 - The Base-64 encoded string.
encode
public static String encode(byte[] buf,
int tw) Base64 encode a byte array, returning the returning string.
buf - The byte array to encode.tw - The total length of any line, 0 for unlimited.