Package uk.ac.starlink.util

Examples of uk.ac.starlink.util.URLDataSource


            // read the URL to get the query arguments
            try {
                URL url =_makeURL(_url, "FORMAT=METADATA");
                LOG.info("Reading SLAP server configuration from " + _url);
                VOElement topEl = new VOElementFactory(StoragePolicy.getDefaultPolicy())
                        .makeVOElement(new URLDataSource(url));
                _checkStatus(topEl);

                NodeList params = topEl.getElementsByTagName("PARAM");
                _fieldDesc = new FieldDescAdapter[params.getLength()];
                for (int i = 0; i < _fieldDesc.length; i++) {
View Full Code Here


            return makeCatalogComponent(table.getCatalog());
        }

        if ("text/csv".equalsIgnoreCase(format)) {
            // CSV formatted table
            StarTable starTable = new CsvStarTable(new URLDataSource(url));
            VoTable table = VoTable.createVoTable(starTable, null, Integer.MAX_VALUE);
            table.setCatalog(new VoCatalog(table));
            return makeCatalogComponent(table.getCatalog());
        }
View Full Code Here

TOP

Related Classes of uk.ac.starlink.util.URLDataSource

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.