public class Base64Coder
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Base64Coder.Coder |
static class |
Base64Coder.Decoder |
static class |
Base64Coder.Encoder |
| 构造器和说明 |
|---|
Base64Coder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
encode(byte[] input,
int flags)
Base64-encode the given data and return a newly allocated
byte[] with the result.
|
static byte[] |
encode(byte[] input,
int offset,
int len,
int flags)
Base64-encode the given data and return a newly allocated
byte[] with the result.
|
static java.lang.String |
encodeToString(byte[] input,
int flags)
Base64-encode the given data and return a newly allocated
String with the result.
|
static java.lang.String |
encodeToString(byte[] input,
int offset,
int len,
int flags)
Base64-encode the given data and return a newly allocated
String with the result.
|
public static java.lang.String encodeToString(byte[] input,
int flags)
input - the data to encodeflags - controls certain features of the encoded output.
Passing DEFAULT results in output that
adheres to RFC 2045.public static java.lang.String encodeToString(byte[] input,
int offset,
int len,
int flags)
input - the data to encodeoffset - the position within the input array at which to
startlen - the number of bytes of input to encodeflags - controls certain features of the encoded output.
Passing DEFAULT results in output that
adheres to RFC 2045.public static byte[] encode(byte[] input,
int flags)
input - the data to encodeflags - controls certain features of the encoded output.
Passing DEFAULT results in output that
adheres to RFC 2045.public static byte[] encode(byte[] input,
int offset,
int len,
int flags)
input - the data to encodeoffset - the position within the input array at which to
startlen - the number of bytes of input to encodeflags - controls certain features of the encoded output.
Passing DEFAULT results in output that
adheres to RFC 2045.