org.bouncycastle.util.encoders
Class Base64Encoder
java.lang.Object
org.bouncycastle.util.encoders.Base64Encoder
- Encoder
public class Base64Encoder
extends java.lang.Object
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 | 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 | encode(byte[] data, int off, int length, OutputStream out) - encode the input data producing a base 64 output stream.
|
protected void | initialiseDecodingTable()
|
decodingTable
protected final byte[] decodingTable
encodingTable
protected final byte[] encodingTable
padding
protected byte padding
Base64Encoder
public Base64Encoder()
decode
public int decode(String data,
OutputStream out)
throws IOException
decode the base 64 encoded String data writing it to the given output stream,
whitespace characters will be ignored.
- decode in interface Encoder
- the number of bytes produced.
decode
public int decode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
decode the base 64 encoded byte data writing it to the given output stream,
whitespace characters will be ignored.
- decode in interface Encoder
- the number of bytes produced.
encode
public int encode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
encode the input data producing a base 64 output stream.
- encode in interface Encoder
- the number of bytes produced.
initialiseDecodingTable
protected void initialiseDecodingTable()