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.


Field Summary
protected  PrintStream strm
           
 
Constructor Summary
MirageFormatter(PrintStream strm)
          Constructs a new formatter which will write to a given stream.
 
Method Summary
static void main(String[] args)
          Writes a table to standard output in Mirage format.
 String toString()
           
 void writeMirageFormat(StarTable table)
          Writes a StarTable to a stream in Mirage format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strm

protected PrintStream strm
Constructor Detail

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
Method Detail

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
IOException

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.