public abstract class StreamStarTableWriter extends java.lang.Object implements StarTableWriter
StarTableWriter
which can be subclassed
by writers which just write to output streams.Constructor and Description |
---|
StreamStarTableWriter() |
Modifier and Type | Method and Description |
---|---|
void |
writeStarTable(StarTable startab,
java.lang.String location,
StarTableOutput sto)
Gets an output stream from
location with reference to
sto and writes to it using this writer's
StarTableWriter.writeStarTable(uk.ac.starlink.table.StarTable,
java.io.OutputStream) method. |
static void |
writeStarTable(StarTableWriter writer,
StarTable startab,
java.lang.String location,
StarTableOutput sto)
Utility method that writes a table to a location
using a given output handler.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormatName, getMimeType, looksLikeFile, writeStarTable
public void writeStarTable(StarTable startab, java.lang.String location, StarTableOutput sto) throws TableFormatException, java.io.IOException
location
with reference to
sto
and writes to it using this writer's
StarTableWriter.writeStarTable(uk.ac.starlink.table.StarTable,
java.io.OutputStream)
method.
This method just invokes the static utility method of the same name.
writeStarTable
in interface StarTableWriter
startab
- table to writelocation
- table destinationsto
- StarTableOutputTableFormatException
- if startab
cannot be
written to location
java.io.IOException
- if there is some I/O errorpublic static void writeStarTable(StarTableWriter writer, StarTable startab, java.lang.String location, StarTableOutput sto) throws java.io.IOException
writer
- output handlerstartab
- table to writelocation
- destinationsto
- output controllerjava.io.IOException