FileDocCategorySizeDatePackage
AbsoluteConverter.javaAPI DocExample833Sun Dec 12 10:51:58 GMT 2004None

AbsoluteConverter

public class AbsoluteConverter extends DocumentParser

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

  
    try {
      URL u = new URL(args[0]);
      OutputStream out = new FileOutputStream(args[1]);
      InputStream in = u.openStream();
      DTD html = DTD.getDTD("html");
      
      in.close();
      out.flush();
      out.close();
    }
    catch (ArrayIndexOutOfBoundsException e) {
      System.err.println("Usage: java PageSaver url local_file");  
    }
    catch (MalformedURLException e) {
      System.err.println("Usage: java PageSaver url local_file");  
    }
    catch (IOException e) {
      System.err.println("Usage: java PageSaver url local_file");  
    }