Package uk.ac.starlink.fits
Class FitsTableWriter.PrimaryType
java.lang.Object
uk.ac.starlink.fits.FitsTableWriter.PrimaryType
- Enclosing class:
FitsTableWriter
Characterises the type of Primary HDU that will precede table
extensions written by this writer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FitsTableWriter.PrimaryType
Basic Primary HDU, containing minimal headers and no data part.static final FitsTableWriter.PrimaryType
No Primary HDU is written. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Indicates whether signed byte values will be permitted in files with this PHDU type.toString()
abstract void
writeTables
(FitsTableWriter writer, uk.ac.starlink.table.TableSequence tseq, OutputStream out) Writes a sequence of tables to an output stream.
-
Field Details
-
BASIC
Basic Primary HDU, containing minimal headers and no data part. -
NONE
No Primary HDU is written. The resulting output will therefore not be a legal FITS file, but it can be appended to an existing FITS file with a valid Primary HDU and perhaps other extension HDUs.
-
-
Constructor Details
-
PrimaryType
Constructor.
-
-
Method Details
-
allowSignedByte
public abstract boolean allowSignedByte()Indicates whether signed byte values will be permitted in files with this PHDU type.- Returns:
- whether signed bytes are allowed
-
writeTables
public abstract void writeTables(FitsTableWriter writer, uk.ac.starlink.table.TableSequence tseq, OutputStream out) throws IOException Writes a sequence of tables to an output stream.- Parameters:
writer
- fits writer instancetseq
- sequence of tablesout
- destination stream- Throws:
IOException
-
toString
-