|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.fits.StandardFitsTableSerializer
public class StandardFitsTableSerializer
Class which knows how to do the various bits of serializing a StarTable to FITS BINTABLE format. A normal (row-oriented) organisation of the data is used. Array-valued columns are all written as fixed size arrays. This class does the hard work for FitsTableWriter.
| Constructor Summary | |
|---|---|
StandardFitsTableSerializer(StarTable table,
boolean allowSignedByte,
WideFits wide)
Constructs a serializer to write a given StarTable, with explicit instruction about how to write byte-type columns data. |
|
| Method Summary | |
|---|---|
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. |
nom.tam.fits.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(java.io.DataOutput strm)
Writes the HDU data for the table to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardFitsTableSerializer(StarTable table,
boolean allowSignedByte,
WideFits wide)
throws java.io.IOException
table - the table to be writtenallowSignedByte - 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 table| Method Detail |
|---|
public nom.tam.fits.Header getHeader()
throws nom.tam.fits.HeaderCardException
FitsTableSerializer
getHeader in interface FitsTableSerializernom.tam.fits.HeaderCardException
public void writeData(java.io.DataOutput strm)
throws java.io.IOException
FitsTableSerializer
writeData in interface FitsTableSerializerstrm - destination stream
java.io.IOExceptionpublic char getFormatChar(int icol)
FitsTableSerializer
getFormatChar in interface FitsTableSerializericol - column to query
public int[] getDimensions(int icol)
FitsTableSerializer
getDimensions in interface FitsTableSerializericol - column to query
public java.lang.String getBadValue(int icol)
FitsTableSerializer
getBadValue in interface FitsTableSerializericol - column to query
public long getRowCount()
FitsTableSerializer
getRowCount in interface FitsTableSerializer
|
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 | ||||||||