uk.ac.starlink.mirage
Class MirageFormatter
java.lang.Object
uk.ac.starlink.mirage.MirageFormatter
public class MirageFormatter
- extends Object
Turns StarTables into Mirage format tables.
strm
protected PrintStream strm
MirageFormatter
public MirageFormatter(PrintStream strm)
- Constructs a new formatter which will write to a given stream.
- Parameters:
strm
- the stream into which mirage format tables will be
written
writeMirageFormat
public void writeMirageFormat(StarTable table)
throws IOException
- Writes a StarTable to a stream in Mirage format.
- Parameters:
table
- a StarTable object to write
- Throws:
IOException
- if there is a write error
toString
public String toString()
- Overrides:
toString
in class Object
main
public static void main(String[] args)
throws IOException
- Writes a table to standard output in Mirage format.
- Parameters:
args
- a 1-element array giving the location of the
table to print
- Throws:
IOException