public class VariableFitsTableSerializer extends StandardFitsTableSerializer
| Constructor and Description |
|---|
VariableFitsTableSerializer(uk.ac.starlink.table.StarTable table,
uk.ac.starlink.table.StoragePolicy storagePolicy,
boolean allowSignedByte)
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, getDimensions, getFormatChar, getRowCountpublic VariableFitsTableSerializer(uk.ac.starlink.table.StarTable table,
uk.ac.starlink.table.StoragePolicy storagePolicy,
boolean allowSignedByte)
throws java.io.IOException
table - table to writestoragePolicy - policy for acquiring byte array scratch buffersallowSignedByte - if true, bytes written as FITS signed bytes
(TZERO=-128), if false bytes written as signed shortsjava.io.IOExceptionpublic void set64BitMode(boolean useQ)
useQ - true for Q, false for Ppublic nom.tam.fits.Header getHeader()
throws nom.tam.fits.HeaderCardException
FitsTableSerializergetHeader in interface FitsTableSerializergetHeader in class StandardFitsTableSerializernom.tam.fits.HeaderCardExceptionpublic void writeData(java.io.DataOutput out)
throws java.io.IOException
FitsTableSerializerwriteData in interface FitsTableSerializerwriteData in class StandardFitsTableSerializerout - destination streamjava.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.