public interface StarTableWriter
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormatName()
Gives the name of the format which is written by this writer.
|
java.lang.String |
getMimeType()
Returns a string suitable for use as the value of a MIME
Content-Type header.
|
boolean |
looksLikeFile(java.lang.String location)
Indicates whether the destination is of a familiar form for this
kind of writer.
|
void |
writeStarTable(StarTable startab,
java.io.OutputStream out)
Writes a StarTable object to a given output stream.
|
void |
writeStarTable(StarTable startab,
java.lang.String location,
StarTableOutput sto)
Writes a StarTable object to a given location.
|
void writeStarTable(StarTable startab, java.io.OutputStream out) throws TableFormatException, java.io.IOException
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.
startab - 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 errorvoid writeStarTable(StarTable startab, java.lang.String location, StarTableOutput sto) throws TableFormatException, java.io.IOException
StreamStarTableWriter provides a suitable implementation
for this case.startab - table to writelocation - destination for startabsto - StarTableOutput which dispatched this requestTableFormatException - if startab cannot be written
to locationjava.io.IOException - if there is some I/O errorboolean looksLikeFile(java.lang.String location)
location - the location name (probably filename)java.lang.String getFormatName()
java.lang.String getMimeType()
application/octet-stream"
(for binary formats) or "text/plain" for ASCII ones)
is recommended.