uk.ac.starlink.table
Class StreamStarTableWriter

java.lang.Object
  extended byuk.ac.starlink.table.StreamStarTableWriter
All Implemented Interfaces:
StarTableWriter
Direct Known Subclasses:
AbstractFitsTableWriter, CsvTableWriter, HTMLTableWriter, LatexTableWriter, MirageTableWriter, TextTableWriter, TstTableWriter

public abstract class StreamStarTableWriter
extends Object
implements StarTableWriter

Partial implementation of StarTableWriter which can be subclassed by writers which just write to output streams.

Since:
8 Dec 2004

Constructor Summary
StreamStarTableWriter()
           
 
Method Summary
 void writeStarTable(StarTable startab, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.starlink.table.StarTableWriter
getFormatName, getMimeType, looksLikeFile, writeStarTable
 

Constructor Detail

StreamStarTableWriter

public StreamStarTableWriter()
Method Detail

writeStarTable

public void writeStarTable(StarTable startab,
                           String location,
                           StarTableOutput sto)
                    throws TableFormatException,
                           IOException
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.

Specified by:
writeStarTable in interface StarTableWriter
Parameters:
startab - table to write
location - table destination
sto - StarTableOutput
Throws:
TableFormatException - if startab cannot be written to location
IOException - if there is some I/O error

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