1package org.bouncycastle.util.encoders;
2
3import java.io.IOException;
4import java.io.OutputStream;
5
6/**
7 * Encode and decode byte arrays (typically from binary to 7-bit ASCII
8 * encodings).
9 */
10public interface Encoder
11{
12    int encode(byte[] data, int off, int length, OutputStream out) throws IOException;
13
14    int decode(byte[] data, int off, int length, OutputStream out) throws IOException;
15
16    int decode(String data, OutputStream out) throws IOException;
17}
18