public class Base64Encoder extends Object
| Constructor | Description |
|---|---|
Base64Encoder() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
base64Encode(String s) |
|
static String |
encode(byte[] in,
int len) |
Encode a raw byte array to a Base64 String.
|
static void |
encode(InputStream in,
OutputStream out,
int len) |
public static String base64Encode(String s) throws IOException
IOExceptionpublic static String encode(byte[] in, int len) throws IOException
in - Byte array to encode.len - Length of Base64 lines. 0 means no line breaks.IOExceptionpublic static void encode(InputStream in, OutputStream out, int len) throws IOException
IOExceptionCopyright © 2018. All rights reserved.