Examples of Startable


Examples of org.uberfire.commons.services.cdi.Startable

            @Override
            public Startable create( CreationalContext<Startable> ctx ) {


                return new Startable() {
                    @Override
                    public int hashCode() {
                        return super.hashCode();
                    }
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

        _progressPanel = _getProgressPanel("Downloading query results ...");
        _progressPanel.start();

        try {
            StarTableFactory factory = new StarTableFactory();
            StarTable starTable = null;
            if (RegCapabilityInterface.SIA_STDID.equals(_standardId)) {
                _progressPanel.setText("Performing SIAP query: " + _url);
                // convert raSize and decSize to degrees for query
                DalQuery sq = new DalQuery(_url.toString(), ra, dec, radius / 60.);
                starTable = sq.execute(factory);
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

     * @throws IOException on error
     */
    public static VoTable createVoTable(URL url, String id, String name, Catalog catalog)
            throws IOException {
        StarTableFactory factory = _getStarTableFactory();
        StarTable starTable = factory.makeStarTable(url, null);
        VoTable voTable = createVoTable(starTable, catalog, MAX_ROWS);
        if (name == null) {
            name = starTable.getName();
        }
        if (name == null) {
            name = id;
        }
        if (name == null) {
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

     * @return a VoTable
     * @throws IOException on error
     */
    public static VoTable createVoTable(DataSource datsrc, String id, String name) throws IOException {
        StarTableFactory factory = _getStarTableFactory();
        StarTable starTable = factory.makeStarTable(datsrc);
        VoTable voTable = createVoTable(starTable, null, MAX_ROWS);
        if (name == null) {
            name = starTable.getName();
        }
        if (name == null) {
            name = id;
        }
        if (name == null) {
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

        if (url == null) {
            tmpfile = File.createTempFile("plastic", ".vot");
            urlStr = URLUtils.makeFileURL(tmpfile).toString();
            tmpfile.deleteOnExit();
            OutputStream ostrm = new BufferedOutputStream(new FileOutputStream(tmpfile));
            final StarTable starTable = navigator.getStarTable();
            name = starTable.getName();
            try {
                new VOTableWriter(DataFormat.TABLEDATA, true).writeStarTable(starTable, ostrm);
            }
            catch (IOException e) {
                //noinspection ResultOfMethodCallIgnored
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

            }
        };

       

        StarTable table;
        try {
            table = producer.getTable();
        } catch (Exception e) {
            e.printStackTrace();
            return;
        }

        RowSequence rseq;
        try {
            rseq = table.getRowSequence();
            try {
                while (rseq.next()) {
                    Object[] row = rseq.getRow();
//                    System.out.println("XXX Found row: " + row[0]); // XXX
                }
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

                bos.flush();
                // Restore the name that was removed above
                votMetaHdu.getHeader().addValue("EXTNAME", votMetaName, "Table metadata in VOTable format");
                ByteArrayDataSource dataSrc = new ByteArrayDataSource(filename, os.toByteArray());
                bos.close();
                StarTable starTable = new FitsPlusTableBuilder().makeStarTable(dataSrc, true,
                        StoragePolicy.getDefaultPolicy());
                dataSrc.close();
                VoTable table = VoTable.createVoTable(starTable, null, 1000000);
                table.setName(name);
                new VoCatalog(table); // Wraps the table in a local catalog for searching
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

                String sampId = createSampId();
                return sender.createMessage(_navigator, _url, sampId, _ucdMap);
            } else {
                // message to send currently displayed table
                String sampId = getSampId();
                StarTable table = _navigator.getStarTable();
                if (table != null) {
                    String label = sampId;
                    QueryResult queryResult = _navigator.getQueryResult();
                    if (queryResult instanceof Catalog) {
                        label = ((Catalog) queryResult).getTitle();
View Full Code Here

Examples of uk.ac.starlink.table.StarTable

            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
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.