|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.fits.StandardFitsTableSerializer
uk.ac.starlink.fits.VariableFitsTableSerializer
public class VariableFitsTableSerializer
FitsTableSerializer which can write variable array-valued columns using the 'P' or 'Q' TFORM formatting characters.
Constructor Summary | |
---|---|
VariableFitsTableSerializer(StarTable table,
StoragePolicy storagePolicy,
boolean allowSignedByte,
WideFits wide)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class uk.ac.starlink.fits.StandardFitsTableSerializer |
---|
getBadValue, getDimensions, getFormatChar, getHealpixHeaders, getRowCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableFitsTableSerializer(StarTable table, StoragePolicy storagePolicy, boolean allowSignedByte, WideFits wide) 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 shortswide
- convention for representing over-wide tables;
null to avoid this convention
java.io.IOException
- if it won't be possible to write the given tableMethod Detail |
---|
public 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 stream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |