/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doCatalog(catFactory, "http://thredds.ucar.edu:9080/thredds/idd/models.xml"); }
/** * testing */ public static void main(String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(false); //doOne(catFactory, "http://www.unidata.ucar.edu/georesources/idvcatalog.xml", true); doOne(catFactory, "file:C:/data/work/maurer/atm_mod.xml", true); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doOne(catFactory, "file:///C:/dev/thredds/catalog/test/data/TestHarvest.xml"); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doOne(catFactory, "http://thredds.ucar.edu/thredds/idd/models.xml"); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doCatalog(catFactory, "http://thredds.ucar.edu:9080/thredds/idd/models.xml"); }
/** * testing */ public static void main(String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(false); //doOne(catFactory, "http://www.unidata.ucar.edu/georesources/idvcatalog.xml", true); doOne(catFactory, "file:C:/data/work/maurer/atm_mod.xml", true); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doOne(catFactory, "file:///C:/dev/thredds/catalog/test/data/TestHarvest.xml"); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doOne(catFactory, "http://thredds.ucar.edu/thredds/idd/models.xml"); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doOne(catFactory, "file:///C:/dev/thredds/catalog/test/data/TestHarvest.xml"); }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doCatalog(catFactory, "http://thredds.ucar.edu:9080/thredds/idd/models.xml"); }
static String convertCatalogToString( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); try { return fac.writeXML( (InvCatalogImpl) catalog ); } catch ( IOException e ) { return null; } } }
/** testing */ public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true); doOne(catFactory, "http://thredds.ucar.edu/thredds/idd/models.xml"); }
/** * testing */ public static void main(String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(false); //doOne(catFactory, "http://www.unidata.ucar.edu/georesources/idvcatalog.xml", true); doOne(catFactory, "file:C:/data/work/maurer/atm_mod.xml", true); }
static String convertCatalogToString( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); try { return fac.writeXML( (InvCatalogImpl) catalog ); } catch ( IOException e ) { return null; } } }
static String convertCatalogToString( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); try { return fac.writeXML( (InvCatalogImpl) catalog ); } catch ( IOException e ) { return null; } } }
static Document convertCatalogToDocument( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); InvCatalogConvertIF converter = fac.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); InvCatalogFactory10 fac10 = (InvCatalogFactory10) converter; return fac10.writeCatalog( (InvCatalogImpl) catalog ); }
static Document convertCatalogToDocument( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); InvCatalogConvertIF converter = fac.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); InvCatalogFactory10 fac10 = (InvCatalogFactory10) converter; return fac10.writeCatalog( (InvCatalogImpl) catalog ); }
static Document convertCatalogToDocument( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); InvCatalogConvertIF converter = fac.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); InvCatalogFactory10 fac10 = (InvCatalogFactory10) converter; return fac10.writeCatalog( (InvCatalogImpl) catalog ); }
public static List<InvDataset> getCatalogDatasets(InputStream catalogIS, URI catalogBaseUri) { final InvCatalogFactory factory = InvCatalogFactory.getDefaultFactory(true); final InvCatalogImpl catalog = factory.readXML(catalogIS, catalogBaseUri); return catalog.getDatasets(); }
/** * Constructs the CatalogGen for the given config document. * * @param configDocURL - the URL of the configuration document */ public CatalogGen( URL configDocURL) { // Create a InvCatalogFactory with CATALOG_GEN_CONFIG MetadataType registered. log.debug( "CatalogGen(URL): create catalog and CatalogGenConfig converter." ); this.catFactory = InvCatalogFactory.getDefaultFactory( true ); this.catFactory.registerMetadataConverter( MetadataType.CATALOG_GEN_CONFIG.toString(), new CatGenConfigMetadataFactory()); // Read the given XML config file. log.debug( "CatalogGen(URL): reading the config doc <" + configDocURL.toString() + ">."); this.catalog = this.catFactory.readXML( configDocURL.toString()); log.debug( "CatalogGen(URL): done."); }