FileDocCategorySizeDatePackage
ContentGetter.javaAPI DocExample629Sun Dec 12 10:52:00 GMT 2004None

ContentGetter

public class ContentGetter extends Object

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


    if  (args.length > 0) {

      //Open the URL for reading
      try {
        URL u = new URL(args[0]);
        try {
          Object o = u.getContent();
          System.out.println("I got a " + o.getClass().getName());
        } // end try
        catch (IOException ex) {
          System.err.println(ex);
        }
      } // end try
      catch (MalformedURLException ex) {
        System.err.println(args[0] + " is not a parseable URL");
      }
    } //  end if