|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.StreamStarTableWriter
uk.ac.starlink.table.formats.TstTableWriter
Output handler for Tab-Separated Table format. This is used by GAIA/SkyCat amongst other software. Documentation of the format can be found in Starlink System Note 75 (SSN/75).
Constructor Summary | |
TstTableWriter()
|
Method Summary | |
String |
getFormatName()
Returns "TST". |
String |
getMimeType()
Returns "text/plain". |
boolean |
looksLikeFile(String location)
Returns true for location argument which ends in
".tst", ".TST" or ".TAB". |
void |
writeStarTable(StarTable st,
OutputStream out)
Writes a StarTable object to a given output stream. |
Methods inherited from class uk.ac.starlink.table.StreamStarTableWriter |
writeStarTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TstTableWriter()
Method Detail |
public String getFormatName()
public String getMimeType()
public boolean looksLikeFile(String location)
location
argument which ends in
".tst", ".TST" or ".TAB".
location
- the intended destination of the output
public void writeStarTable(StarTable st, OutputStream out) throws IOException
StarTableWriter
BufferedOutputStream
), and should not close it
at the end of the call.
Not all table writers are capable of writing to a stream;
an implementation may throw a TableFormatException
to
indicate that it cannot do so.
st
- the table to writeout
- the output stream to which startab should be
written
IOException
- if there is some I/O error
|
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 |