public class

Base64Encoder

extends Object
implements Encoder
java.lang.Object
   ↳ org.bouncycastle.util.encoders.Base64Encoder
Known Direct Subclasses

Summary

Fields
protected final byte[] decodingTable
protected final byte[] encodingTable
protected byte padding
Public Constructors
Base64Encoder()
Public Methods
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 Methods
void initialiseDecodingTable()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.util.encoders.Encoder

Fields

protected final byte[] decodingTable

protected final byte[] encodingTable

protected byte padding

Public Constructors

public Base64Encoder ()

Public Methods

public 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.

Returns
  • the number of bytes produced.
Throws
IOException

public 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.

Returns
  • the number of bytes produced.
Throws
IOException

public int encode (byte[] data, int off, int length, OutputStream out)

encode the input data producing a base 64 output stream.

Returns
  • the number of bytes produced.
Throws
IOException

Protected Methods

protected void initialiseDecodingTable ()