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 which chooses sensibly between using 'P' and 'Q'
format.
|
VariableFitsTableWriter(boolean longIndexing,
boolean allowSignedByte)
Constructs a writer forcing use of either 'P' or 'Q' format for
variable-length array columns.
|
| 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, writeTableHDUpublic VariableFitsTableWriter()
public VariableFitsTableWriter(boolean longIndexing,
boolean allowSignedByte)
longIndexing - true for 'Q' (64-bit) indexing into the heap,
false for 'P' (32-bit) indexing into the heapallowSignedByte - if true, bytes written as FITS signed bytes
(TZERO=-128), if false bytes written as signed shortspublic 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
AbstractFitsTableWritercreateSerializer in class AbstractFitsTableWritertable - table to serializejava.io.IOExceptionCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.