public class Base64Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DEFAULT_LINE_LENGTH |
static byte[] |
DEFAULT_LINE_SEPARATOR |
| Constructor and Description |
|---|
Base64Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decode(InputStream in,
OutputStream out)
Decode an input stream and write processed data to an output stream
|
static byte[] |
decode(String data) |
static String |
encode(byte[] data) |
static void |
encode(InputStream in,
OutputStream out)
Encode an input stream and write processed data to an output stream
|
public static final Integer DEFAULT_LINE_LENGTH
public static final byte[] DEFAULT_LINE_SEPARATOR
public static void decode(InputStream in, OutputStream out) throws IOException
in - the input stream to be decodedout - the output stream to write the decoded dataIOExceptionpublic static byte[] decode(String data) throws IOException
IOExceptionpublic static void encode(InputStream in, OutputStream out) throws IOException
in - the input stream to be encodedout - the output stream to write the encoded dataIOExceptionpublic static String encode(byte[] data) throws IOException
IOExceptionCopyright © 2020 TIBCO Software Inc.. All rights reserved.