FileDocCategorySizeDatePackage
ContentGetter.javaAPI DocExample626Sat Sep 09 19:54:06 BST 2000None

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 e) {
          System.err.println(e);
        }
      } // end try
      catch (MalformedURLException e) {
        System.err.println(args[0] + " is not a parseable URL");
      }
    } //  end if