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 String |
encode(byte[] data,
boolean multiLineOutput) |
static void |
encode(InputStream in,
OutputStream out)
Encode an input stream and write processed data to an output stream
|
static void |
encode(InputStream in,
OutputStream out,
boolean multiLineOutput)
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 dataIOException
public static byte[] decode(String data) throws IOException
IOException
public static void encode(InputStream in, OutputStream out) throws IOException
in
- the input stream to be encodedout
- the output stream to write the encoded dataIOException
public static void encode(InputStream in, OutputStream out, boolean multiLineOutput) throws IOException
in
- the input stream to be encodedout
- the output stream to write the encoded datamultiLineOutput
- specifies whether the output should be formatted into multiple rows using a line separatorIOException
public static String encode(byte[] data, boolean multiLineOutput)
public static String encode(byte[] data)
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.