public class FitsTableWriter extends AbstractFitsTableWriter
Output is currently to fixed-width columns only. For StarTable columns of variable size, a first pass is made through the table data to determine the largest size they assume, and the size in the output table is set to the largest of these. Excess space is padded with some sort of blank value (NaN for floating point values, spaces for strings, zero-like values otherwise).
Constructor and Description |
---|
FitsTableWriter()
Default constructor.
|
FitsTableWriter(java.lang.String name,
boolean allowSignedByte,
WideFits wide)
Deprecated.
allows some configuration options but not others;
use no-arg constructor and configuration methods instead
|
Modifier and Type | Method and Description |
---|---|
protected FitsTableSerializer |
createSerializer(StarTable table)
Provides a suitable serializer for a given table.
|
boolean |
looksLikeFile(java.lang.String location)
Returns true if location ends with something like ".fit"
or ".fits" or ".fts".
|
getAllowSignedByte, getAllowZeroLengthString, getConfig, getCurrentDate, getFormatName, getMetadataCards, getMimeType, getPadCharacter, getWide, getWriteDate, setAllowSignedByte, setAllowZeroLengthString, setFormatName, setPadCharacter, setWide, setWriteDate, writePrimaryHDU, writeStarTable, writeStarTables, writeStarTables, writeTableHDU
writeStarTable, writeStarTable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeStarTable
public FitsTableWriter()
@Deprecated public FitsTableWriter(java.lang.String name, boolean allowSignedByte, WideFits wide)
public boolean looksLikeFile(java.lang.String location)
location
- filenameprotected FitsTableSerializer createSerializer(StarTable table) throws java.io.IOException
AbstractFitsTableWriter
createSerializer
in class AbstractFitsTableWriter
table
- table to serializejava.io.IOException
- if the table can't be written