FileDocCategorySizeDatePackage
rot13InputStream.javaAPI DocExample415Sun Jul 06 18:48:30 BST 1997exploringjava.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;