public class VariableFitsTableSerializer extends StandardFitsTableSerializer
Constructor and Description |
---|
VariableFitsTableSerializer(FitsTableSerializerConfig config,
StarTable table,
StoragePolicy storagePolicy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
nom.tam.fits.Header |
getHeader()
Returns a header suitable for the HDU which will contain the table.
|
void |
set64BitMode(boolean useQ)
Sets whether this serializer should use
the 'P' descriptor (32-bit addressing into the heap) or
the 'Q' descriptor (64-bit addressing into the heap)
for variable-length array columns.
|
void |
writeData(java.io.DataOutput out)
Writes the HDU data for the table to an output stream.
|
getBadValue, getConfig, getDimensions, getFormatChar, getHealpixHeaders, getRowCount, writeDataOnly
public VariableFitsTableSerializer(FitsTableSerializerConfig config, StarTable table, StoragePolicy storagePolicy) throws java.io.IOException
config
- FITS configurationtable
- table to writestoragePolicy
- policy for acquiring byte array scratch buffersjava.io.IOException
- if it won't be possible to write the given tablepublic void set64BitMode(boolean useQ)
useQ
- true for Q, false for Ppublic nom.tam.fits.Header getHeader() throws nom.tam.fits.HeaderCardException
FitsTableSerializer
getHeader
in interface FitsTableSerializer
getHeader
in class StandardFitsTableSerializer
nom.tam.fits.HeaderCardException
public void writeData(java.io.DataOutput out) throws java.io.IOException
FitsTableSerializer
writeData
in interface FitsTableSerializer
writeData
in class StandardFitsTableSerializer
out
- destination streamjava.io.IOException