FileDocCategorySizeDatePackage
Fetch.javaAPI DocExample2064Sat Jun 02 03:12:04 BST 2001None

Fetch

public class Fetch extends Object

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.Stringfetch(java.lang.String address)

        URL url = new URL(address);
        return (String) url.getContent();
    
public static java.awt.Imagefetchimage(java.lang.String address, java.awt.Component c)

        URL url = new URL(address);
	return c.createImage((java.awt.image.ImageProducer)url.getContent());
    
public static voidmain(java.lang.String[] args)

        System.out.println(fetch(args[0]));