20-CS-694 Advanced Programming Techniques Spring 2012
Networking - Protocol Handler

Interfaces, Exceptions, Graphics, Animation, Threads, Reflection, Networking, RMI, JDBC, JNI

Prev     Next     Rotate.java     Handler.java     CryptURLConnection.java
Prev     Next     CryptInputStream.java     ProtoTest.java      All lectures

Protocol Handler - Rotate.java

This class file is placed in protocolhandlers/crypt.

import java.io.*;

public class Rotate extends FilterInputStream {
   public Rotate (InputStream in) {
      super (in);
   }
   
   public int read() throws IOException {
      return in.read()+1;
   }
}