01: package org.bouncycastle.util.encoders;
02:
03: import java.io.IOException;
04: import java.io.OutputStream;
05:
06: /**
07: * Encode and decode byte arrays (typically from binary to 7-bit ASCII
08: * encodings).
09: */
10: public interface Encoder {
11: int encode(byte[] data, int off, int length, OutputStream out)
12: throws IOException;
13:
14: int decode(byte[] data, int off, int length, OutputStream out)
15: throws IOException;
16:
17: int decode(String data, OutputStream out) throws IOException;
18: }
|