Protocol Handler - CryptInputStream.java

     Java Source


package protocolhandlers.crypt;
import  Rotate;
import  java.io.*;

abstract class CryptInputStream extends InputStream {
   InputStream in;
   OutputStream out;
   abstract public void set (InputStream in, OutputStream out);
}

class rotateCryptInputStream extends CryptInputStream {
   public void set (InputStream in, OutputStream out) {
      System.out.println("rotateCryptInputStream: set():");
      this.in = new Rotate(in);
   }
   
   public int read () throws IOException {
      return in.read();
   }
}