Home | History | Annotate | Download | only in encoders
      1 package org.bouncycastle.util.encoders;
      2 
      3 import java.io.IOException;
      4 import java.io.OutputStream;
      5 
      6 /**
      7  * Encode and decode byte arrays (typically from binary to 7-bit ASCII
      8  * encodings).
      9  */
     10 public 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