Beispiel #1
0
  /** @param args command line arguments */
  public static void main(String[] args) {

    DConnect2 dc;

    for (String url : args) {
      try {
        System.out.println("");
        System.out.println("");
        System.out.println("########################################################");
        System.out.println("\nConnecting to " + url + "\n");
        dc = new DConnect2(url);

        System.out.println("\n- - - - - - - - - - - - - - - - - - -");

        System.out.println("Retrieving DDS:\n");
        DDS dds = dc.getDDS();
        dds.print(System.out);

        System.out.println("\n- - - - - - - - - - - - - - - - - - -");
        System.out.println("Retrieving DAS:\n");
        DAS das = dc.getDAS();
        das.print(System.out);

        System.out.println("\n- - - - - - - - - - - - - - - - - - -");
        System.out.println("Retrieving DATA:\n");
        dds = dc.getData("");
        dds.printVal(System.out, "");

        System.out.println("\n- - - - - - - - - - - - - - - - - - -");
        System.out.println("Retrieving DDX:\n");
        dds = dc.getDDX();
        dds.printXML(System.out);

      } catch (Throwable t) {
        t.printStackTrace(System.err);
      }
    }
  }
Beispiel #2
0
 public void process(InputStream is) throws ParseException, DAP2Exception {
   das.parse(is);
 }