FileDocCategorySizeDatePackage
URLConnectionReader.javaAPI DocExample445Tue 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();
	DataInputStream in = new DataInputStream(
				 yahooConnection.getInputStream());
	String inputLine;

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

	in.close();