FileDocCategorySizeDatePackage
Fetch.javaAPI DocExample2016Thu Apr 04 21:39:28 BST 1996None

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]));