public class ColFitsTableSerializer extends java.lang.Object implements FitsTableSerializer
| Constructor and Description |
|---|
ColFitsTableSerializer(FitsTableSerializerConfig config,
StarTable table)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBadValue(int icol)
Returns the bad value (text of the TNULLnn card), if any, used
for a given column.
|
int[] |
getDimensions(int icol)
Returns the dimensions of the items which will be output for a
given column.
|
char |
getFormatChar(int icol)
Returns the FITS TFORM letter which describes the type of data
output for a given column.
|
CardImage[] |
getHeader()
Returns header cards suitable for the HDU which will contain the table.
|
long |
getRowCount()
Returns the number of rows which will be output.
|
void |
writeData(java.io.DataOutput out)
Write the FITS data unit populated by this serializer.
|
public ColFitsTableSerializer(FitsTableSerializerConfig config, StarTable table) throws java.io.IOException
config - configurationtable - table to serializejava.io.IOException - if it won't be possible to write the given tablepublic CardImage[] getHeader()
FitsTableSerializergetHeader in interface FitsTableSerializerpublic void writeData(java.io.DataOutput out)
throws java.io.IOException
writeData in interface FitsTableSerializerout - destination streamjava.io.IOExceptionpublic long getRowCount()
FitsTableSerializergetRowCount in interface FitsTableSerializerpublic char getFormatChar(int icol)
FitsTableSerializergetFormatChar in interface FitsTableSerializericol - column to querypublic int[] getDimensions(int icol)
FitsTableSerializergetDimensions in interface FitsTableSerializericol - column to querypublic java.lang.String getBadValue(int icol)
FitsTableSerializergetBadValue in interface FitsTableSerializericol - column to query