FileDocCategorySizeDatePackage
URLReader.javaAPI DocExample365Tue Dec 12 18:58:30 GMT 2000None

URLReader

public class URLReader extends Object

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

	URL yahoo = new URL("http://www.yahoo.com/");
	DataInputStream in = new DataInputStream(
				 yahoo.openStream());

	String inputLine;

	while ((inputLine = in.readLine()) != null)
	    System.out.println(inputLine);

	in.close();