Examples of writeXml()


Examples of thredds.catalog.InvCatalogFactory.writeXML()

      String expectedCatalogAsString;
      String catalogAsString;
      try
      {
        expectedCatalogAsString = factory.writeXML( (InvCatalogImpl) expectedCatalog );
        catalogAsString = factory.writeXML( (InvCatalogImpl) expandedCatalog );
      }
      catch ( IOException e )
      {
        System.out.println( "IOException trying to write catalog to sout: " + e.getMessage() );
        return;
View Full Code Here

Examples of thredds.catalog.InvCatalogFactory.writeXML()

    InvCatalogImpl cat = fac.readXML( catAsString.toString(), catURI );

    InvDatasetImpl ds = (InvDatasetImpl) cat.getDatasets().get( 0 );
    double d = ds.getDataSize();

    fac.writeXML(cat, System.out);
    assertTrue( "Size of data <" + d + "> not as expected <" + sizeBytes + ">.", Misc.closeEnough(d, sizeBytes));
  }
}
View Full Code Here

Examples of thredds.catalog.parser.jdom.InvCatalogFactory10.writeXML()

      {
        // Override default output catalog version. (kludge for IDV backward compatibility)
        InvCatalogFactory10 fac10 = (InvCatalogFactory10) this.catFactory.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 );
        fac10.setVersion( this.catalog.getVersion() );
        BufferedOutputStream osCat = new BufferedOutputStream( new FileOutputStream( outFileName ) );
        fac10.writeXML( (InvCatalogImpl) catalog, osCat );
        osCat.close();
      }

      log.debug( "writeCatalog(): catalog written to " + outFileName + "." );
    }
View Full Code Here

Examples of ucar.nc2.ncml.NcMLWriter.writeXML()

    ncfile.writeCDL(System.out, false);
    ncfile.writeNcML(System.out, null);

    NcMLWriter w = new NcMLWriter();
    w.writeXML(ncfile, System.out, null);

    OutputStream out = new FileOutputStream(TestLocal.cdmTestDataDir +"testSpecialChars.ncml");
    w.writeXML(ncfile, out, null);
    out.close();
View Full Code Here

Examples of ucar.nc2.ncml.NcMLWriter.writeXML()

    NcMLWriter w = new NcMLWriter();
    w.writeXML(ncfile, System.out, null);

    OutputStream out = new FileOutputStream(TestLocal.cdmTestDataDir +"testSpecialChars.ncml");
    w.writeXML(ncfile, out, null);
    out.close();

    ncfile.close();
  }
View Full Code Here

Examples of ucar.nc2.ncml.NcMLWriter.writeXML()

    val = ncfile.findAttValueIgnoreCase(v, "yow", null);
    assert val != null;
    assert val.equals(trouble);

    NcMLWriter w = new NcMLWriter();
    w.writeXML(ncfile, System.out, null);

    ncfile.close();
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.