FileDocCategorySizeDatePackage
URLClient.javaAPI DocExample495Mon Jan 15 12:26:36 GMT 2001javasec.samples.ch14

URLClient

public class URLClient extends Object

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

        URL u = new URL(args[0]);
        URLConnection uc = u.openConnection();
        BufferedReader br = new BufferedReader(
                   new InputStreamReader(uc.getInputStream()));
        String s = br.readLine();
        while (s != null) {
            System.out.println(s);
            s = br.readLine();
        }