FileDocCategorySizeDatePackage
PasswordedPageViewer.javaAPI DocExample645Sat Sep 09 20:52:58 BST 2000None

PasswordedPageViewer

public class PasswordedPageViewer extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    for (int i = 0; i < args.length; i++) {
      try {
        URL u = new URL(args[i]);
        URLConnection uc = u.openConnection();
        uc.setAllowUserInteraction(true);
        InputStream in = uc.getInputStream();
        Reader r = new InputStreamReader(in);
        int c;
        while ((c = r.read()) != -1) {
          System.out.print((char) c);
        } 
        System.out.println();
      }
      catch (IOException e) {
        System.err.println(e);
      }
      
    }