FileDocCategorySizeDatePackage
rot13InputStream.javaAPI DocExample511Mon May 01 14:41:44 BST 2000learningjava.io

rot13InputStream

public class rot13InputStream extends FilterInputStream

Fields Summary
Constructors Summary
public rot13InputStream(InputStream i)

        super( i );
    
Methods Summary
public intread()

        return rot13( in.read(  ) );
    
private introt13(int c)

        if ( (c >= 'A") && (c <= 'Z") )
            c=(((c-'A")+13)%26)+'A";
        if ( (c >= 'a") && (c <= 'z") )
            c=(((c-'a")+13)%26)+'a";
        return c;