public class VariableFitsTableWriter extends AbstractFitsTableWriter
ColumnInfo.getShape()
is negative) will be written in the output FITS file using the
'P' or 'Q' data type specifier with the actual data written in the
BINTABLE extension heap - see the FITS document for details.
Any other columns will get written in just the same way as by the
FitsTableWriter
.
Strings and String arrays ('A' descriptor) are not currently written in variable-length form.
Constructor and Description |
---|
VariableFitsTableWriter()
Constructs a writer with default characteristics.
|
VariableFitsTableWriter(java.lang.Boolean longIndexing,
boolean allowSignedByte,
WideFits wide)
Constructs a writer with custom characteristics.
|
Modifier and Type | Method and Description |
---|---|
protected FitsTableSerializer |
createSerializer(uk.ac.starlink.table.StarTable table)
Provides a suitable serializer for a given table.
|
boolean |
looksLikeFile(java.lang.String location)
Always returns false.
|
void |
setStoragePolicy(uk.ac.starlink.table.StoragePolicy storagePolicy)
Sets the storage policy which will be used for temporary storage
during writing.
|
addMetadata, getCurrentDate, getFormatName, getMimeType, setFormatName, writePrimaryHDU, writeStarTable, writeStarTables, writeStarTables, writeTableHDU
public VariableFitsTableWriter()
public VariableFitsTableWriter(java.lang.Boolean longIndexing, boolean allowSignedByte, WideFits wide)
longIndexing
- TRUE for 'Q' (64-bit) indexing into the heap,
FALSE for 'P' (32-bit) indexing into the heap,
null to make a sensible choiceallowSignedByte
- 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 conventionpublic void setStoragePolicy(uk.ac.starlink.table.StoragePolicy storagePolicy)
storagePolicy
- policy to usepublic boolean looksLikeFile(java.lang.String location)
protected FitsTableSerializer createSerializer(uk.ac.starlink.table.StarTable table) throws java.io.IOException
AbstractFitsTableWriter
createSerializer
in class AbstractFitsTableWriter
table
- table to serializejava.io.IOException
- if the table can't be writtenCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.