public class TstTableWriter extends StreamStarTableWriter
| Constructor and Description |
|---|
TstTableWriter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormatName()
Returns "TST".
|
java.lang.String |
getMimeType()
Returns "text/plain".
|
boolean |
looksLikeFile(java.lang.String location)
Returns true for
location argument which ends in
".tst", ".TST" or ".TAB". |
void |
writeStarTable(StarTable st,
java.io.OutputStream out)
Writes a StarTable object to a given output stream.
|
writeStarTablepublic java.lang.String getFormatName()
public java.lang.String getMimeType()
public boolean looksLikeFile(java.lang.String location)
location argument which ends in
".tst", ".TST" or ".TAB".location - the intended destination of the outputpublic void writeStarTable(StarTable st, java.io.OutputStream out) throws java.io.IOException
StarTableWriterBufferedOutputStream), 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
writtenTableFormatException - if this table cannot be written to a
streamjava.io.IOException - if there is some I/O error