uk.ac.starlink.fits
Class HduFitsTableWriter
java.lang.Object
uk.ac.starlink.table.StreamStarTableWriter
uk.ac.starlink.fits.AbstractFitsTableWriter
uk.ac.starlink.fits.HduFitsTableWriter
- All Implemented Interfaces:
- MultiStarTableWriter, StarTableWriter
public class HduFitsTableWriter
- extends AbstractFitsTableWriter
TableWriter which writes a single extension BINTABLE HDU containing the
table. It differs from FitsTableWriter
in that it does not
write a primary HDU, so the result will only form a legal FITS file
if it is appended to an existing FITS file which already has a primary
HDU, and possibly other extension HDUs already.
This class can be used to generate a multi-extension FITS file.
- Since:
- 23 Oct 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HduFitsTableWriter
public HduFitsTableWriter()
- Constructor.
writePrimaryHDU
public void writePrimaryHDU(java.io.DataOutput out)
- Does nothing.
- Overrides:
writePrimaryHDU
in class AbstractFitsTableWriter
- Parameters:
out
- destination stream
looksLikeFile
public boolean looksLikeFile(java.lang.String location)
- Returns false.
- Parameters:
location
- the location name (probably filename)
- Returns:
- true iff it looks like a file this writer would
normally write
createSerializer
protected FitsTableSerializer createSerializer(StarTable table)
throws java.io.IOException
- Description copied from class:
AbstractFitsTableWriter
- Provides a suitable serializer for a given table.
- Specified by:
createSerializer
in class AbstractFitsTableWriter
- Parameters:
table
- table to serialize
- Returns:
- FITS serializer
- Throws:
java.io.IOException