org.bouncycastle.util.encoders

Interface Encoder

Known Implementing Classes:
Base64Encoder, HexEncoder, UrlBase64Encoder

public interface Encoder

Encode and decode byte arrays (typically from binary to 7-bit ASCII encodings).

Method Summary

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

Method Details

decode

public int decode(String data,
                  OutputStream out)
            throws IOException

decode

public int decode(byte[] data,
                  int off,
                  int length,
                  OutputStream out)
            throws IOException

encode

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