FileDocCategorySizeDatePackage
URLConnectionReader.javaAPI DocExample470Tue Dec 12 18:58:30 GMT 2000None

URLConnectionReader

public class URLConnectionReader extends Object

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

	URL yahoo = new URL("http://www.yahoo.com/");
	URLConnection yahooConnection = yahoo.openConnection();
	BufferedReader in = new BufferedReader(
				new InputStreamReader(
				yahooConnection.getInputStream()));
	String inputLine;

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

	in.close();