|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.votable.VOTableBuilder
Implementation of the TableBuilder interface which gets StarTables from VOTable documents.
Constructor Summary | |
VOTableBuilder()
|
Method Summary | |
boolean |
canImport(DataFlavor flavor)
Returns true for flavors which have MIME types starting text/xml application/xml application/x-votable+xml |
StarTable |
makeStarTable(DataSource datsrc,
boolean wantRandom)
Makes a StarTable out of a DataSource which points to a VOTable. |
void |
streamStarTable(InputStream istrm,
TableSink sink,
String index)
Acquires the data from a single TABLE element in a VOTable document, writing the result to a sink. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VOTableBuilder()
Method Detail |
public StarTable makeStarTable(DataSource datsrc, boolean wantRandom) throws IOException
makeStarTable
in interface TableBuilder
datsrc
- the location of the VOTable document to usewantRandom
- whether, preferentially, a random access table
should be returned
IOException
public boolean canImport(DataFlavor flavor)
canImport
in interface TableBuilder
flavor
- the DataFlavor whose suitability as stream input
is to be assessed
public void streamStarTable(InputStream istrm, TableSink sink, String index) throws IOException
istrm
- stream from which the VOTable document will be suppliedsink
- callback interface into which the table metadata and
data will be dumpedindex
- if present, a string representation of the index of
the table in the document to be read - "0" means the
first one encountered, "1" means the second, etc
IOException
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |