![]() | Source code below from: Learning Java By Pat Niemeyer and Jonathan Knudsen Published 20 May, 2005 Average rating
Powells
Alibris
|
//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( ); } }