org.knopflerfish.util
public class Base64 extends java.lang.Object
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] in)
Decode a string of Base64 data.
|
static void |
decode(java.io.InputStream in,
java.io.OutputStream out) |
static byte[] |
decode(java.lang.String in) |
static java.lang.String |
encode(byte[] in)
Encode a raw byte array to a Base64 String.
|
static java.lang.String |
encode(byte[] in,
int len)
Encode a raw byte array to a Base64 String.
|
static void |
encode(java.io.InputStream in,
java.io.OutputStream out,
int len) |
public static byte[] decode(byte[] in)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] decode(java.lang.String in)
throws java.io.IOException
java.io.IOExceptionpublic static void decode(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String encode(byte[] in)
throws java.io.IOException
in - Byte array to encode.java.io.IOExceptionpublic static java.lang.String encode(byte[] in,
int len)
throws java.io.IOException
in - Byte array to encode.len - Length of Base64 lines. 0 means no line breaks.java.io.IOExceptionpublic static void encode(java.io.InputStream in,
java.io.OutputStream out,
int len)
throws java.io.IOException
java.io.IOException