FileDocCategorySizeDatePackage
rot13CryptInputStream.javaAPI DocExample560Thu May 04 12:06:12 BST 2000learningjava.protocolhandlers.crypt

rot13CryptInputStream.java

//file: rot13CryptInputStream.java
package learningjava.protocolhandlers.crypt;
import java.io.*;

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

class rot13CryptInputStream extends CryptInputStream {

    public void set( InputStream in, OutputStream out ) {
        this.in = new learningjava.io.rot13InputStream( in );
    }
    public int read(  ) throws IOException {
        return in.read(  );
    }
}