//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( );
}
}
|