|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.fits.ColFitsTableSerializer
Object which can serialize a StarTable to a data stream as a one-row FITS file in which each element contains an entire column of the table.
Constructor Summary | |
ColFitsTableSerializer(StarTable table)
Constructor. |
Method Summary | |
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. |
Header |
getHeader()
Returns a header suitable for the HDU which will contain the table. |
long |
getRowCount()
Returns the number of rows which will be output. |
void |
writeData(DataOutput out)
Write the FITS data unit populated by this serializer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColFitsTableSerializer(StarTable table) throws IOException
table
- table to serializeMethod Detail |
public Header getHeader() throws HeaderCardException
FitsTableSerializer
getHeader
in interface FitsTableSerializer
HeaderCardException
public void writeData(DataOutput out) throws IOException
writeData
in interface FitsTableSerializer
out
- destination stream
IOException
public long getRowCount()
FitsTableSerializer
getRowCount
in interface FitsTableSerializer
public char getFormatChar(int icol)
FitsTableSerializer
getFormatChar
in interface FitsTableSerializer
icol
- column to query
public int[] getDimensions(int icol)
FitsTableSerializer
getDimensions
in interface FitsTableSerializer
icol
- column to query
public String getBadValue(int icol)
FitsTableSerializer
getBadValue
in interface FitsTableSerializer
icol
- column to query
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |