URL url = new URL("crypt:rot13://flatland/~pat/foo.txt"); BufferedReader bin = new BufferedReader ( new InputStreamReader( url.openStream(), "8859_1" ) ); String line; while ( (line = bin.readLine()) != null ) System.out.println( line );