Package uk.ac.starlink.util

Examples of uk.ac.starlink.util.ByteArrayDataSource


                BufferedDataOutputStream bos = new BufferedDataOutputStream(os);
                tmpFits.write(bos);
                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
                return table;
            }
View Full Code Here

TOP

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

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.