|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.example.TapWriter
public class TapWriter
Writes SQL ResultSets to VOTable with the INFO elements appropriate for TAP output. It's all streamed, so no appreciable amount of memory should be required, and a maximum record count can be imposed.
Constructor Summary | |
---|---|
TapWriter(DataFormat dfmt,
VOTableVersion version,
long maxrec)
Constructor. |
Method Summary | |
---|---|
static void |
main(String[] args)
Test harness. |
void |
writeVOTable(ResultSet rset,
OutputStream ostrm)
Writes a result set to an output stream as a VOTable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TapWriter(DataFormat dfmt, VOTableVersion version, long maxrec)
dfmt
- selects VOTable serialization format
(TABLEDATA, BINARY, BINARY2, FITS)version
- selects VOTable versionmaxrec
- maximum record count before overflow;
negative value means no limitMethod Detail |
---|
public void writeVOTable(ResultSet rset, OutputStream ostrm) throws IOException, SQLException
rset
- result setostrm
- destination stream
IOException
SQLException
public static void main(String[] args) throws IOException, SQLException
IOException
SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |