Package jsky.catalog.astrocat

Examples of jsky.catalog.astrocat.AstroCatalog


import junit.framework.TestCase;

public class VoCatalogDirectoryTest extends TestCase {
 
  public void testLoadDir() throws MalformedURLException {
    AstroCatalog cat = new AstroCatalog();
    cat.setName("Test");
    cat.setProtocol("http");
    cat.setHost("nvo.stsci.edu");
    cat.setURLPath("/vor10/ristandardservice.asmx");
    CatalogDirectory dir = VoCatalogDirectory.getDirectory(cat);
    int n = dir.getNumCatalogs();
    for(int i = 0; i < n; i++) {
      Catalog catalog = dir.getCatalog(i);
      System.out.println(i + ": " + catalog.getName() + " - " + catalog.getTitle());
View Full Code Here

TOP

Related Classes of jsky.catalog.astrocat.AstroCatalog

Copyright © 2018 www.massapicom. 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.