Package uk.ac.starlink.table
Class StreamStarTableWriter
- java.lang.Object
-
- uk.ac.starlink.table.StreamStarTableWriter
-
- All Implemented Interfaces:
StarTableWriter
- Direct Known Subclasses:
AbstractTextTableWriter
,CsvTableWriter
,HTMLTableWriter
,LatexTableWriter
,TstTableWriter
public abstract class StreamStarTableWriter extends java.lang.Object implements StarTableWriter
Partial implementation ofStarTableWriter
which can be subclassed by writers which just write to output streams.- Since:
- 8 Dec 2004
- Author:
- Mark Taylor (Starlink)
-
-
Constructor Summary
Constructors Constructor Description StreamStarTableWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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'sStarTableWriter.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
-
-
-
-
Method Detail
-
writeStarTable
public void writeStarTable(StarTable startab, java.lang.String location, StarTableOutput sto) throws TableFormatException, java.io.IOException
Gets an output stream from location with reference to sto and writes to it using this writer'sStarTableWriter.writeStarTable(uk.ac.starlink.table.StarTable, java.io.OutputStream)
method.- Specified by:
writeStarTable
in interfaceStarTableWriter
- Parameters:
startab
- table to writelocation
- table destinationsto
- StarTableOutput- Throws:
TableFormatException
- if startab cannot be written to locationjava.io.IOException
- if there is some I/O error
-
-