public class Base64Encoder extends Object implements Encoder
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
decodingTable |
protected byte[] |
encodingTable |
protected byte |
padding |
| 构造器和说明 |
|---|
Base64Encoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
decode(byte[] data,
int off,
int length,
OutputStream out)
decode the base 64 encoded byte data writing it to the given output
stream, whitespace characters will be ignored.
|
int |
decode(String data,
OutputStream out)
decode the base 64 encoded String data writing it to the given output
stream, whitespace characters will be ignored.
|
int |
encode(byte[] data,
int off,
int length,
OutputStream out)
encode the input data producing a base 64 output stream.
|
protected void |
initialiseDecodingTable() |
protected final byte[] encodingTable
protected byte padding
protected final byte[] decodingTable
protected void initialiseDecodingTable()
public int encode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
encode 在接口中 EncoderIOExceptionpublic int decode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
decode 在接口中 EncoderIOExceptionpublic int decode(String data, OutputStream out) throws IOException
decode 在接口中 EncoderIOException