uk.ac.starlink.mirage
Class MirageTableWriter
java.lang.Object
|
+--uk.ac.starlink.table.StreamStarTableWriter
|
+--uk.ac.starlink.mirage.MirageTableWriter
- All Implemented Interfaces:
- StarTableWriter
- public class MirageTableWriter
- extends StreamStarTableWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MirageTableWriter
public MirageTableWriter()
writeStarTable
public void writeStarTable(StarTable startab,
OutputStream out)
throws IOException
- Description copied from interface:
StarTableWriter
- Writes a StarTable object to a given output stream.
The implementation can assume that out is suitable for
direct writing (for instance it should not normally wrap it in a
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.
- Parameters:
startab
- the table to writeout
- the output stream to which startab should be
written
- Throws:
IOException
- if there is some I/O error
looksLikeFile
public boolean looksLikeFile(String filename)
- Description copied from interface:
StarTableWriter
- Indicates whether the destination is of a familiar form for this
kind of writer. This may be used to guess what kind of format
a table should be written in. Implementations should return
true for values of location which look like
the normal form for their output format, for instance one with
the usual file extension.
- Parameters:
filename
- the location name (probably filename)
- Returns:
- true iff it looks like a file this writer would
normally write
getFormatName
public String getFormatName()
- Description copied from interface:
StarTableWriter
- Gives the name of the format which is written by this writer.
Matching against this string may be used by callers to identify
or select this writer from a list.