|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.StreamStarTableWriter
uk.ac.starlink.fits.AbstractFitsTableWriter
uk.ac.starlink.fits.VariableFitsTableWriter
public class VariableFitsTableWriter
TableWriter which writes FITS BINTABLEs with variable-length arrays
where appropriate.
Array-valued columns in the input StarTable which are declared
with variable shapes (the last element of 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 Summary | |
---|---|
VariableFitsTableWriter()
Constructs a writer with default characteristics. |
|
VariableFitsTableWriter(Boolean longIndexing,
boolean allowSignedByte,
WideFits wide)
Constructs a writer with custom characteristics. |
Method Summary | |
---|---|
protected FitsTableSerializer |
createSerializer(StarTable table)
Provides a suitable serializer for a given table. |
boolean |
looksLikeFile(String location)
Always returns false. |
void |
setStoragePolicy(StoragePolicy storagePolicy)
Sets the storage policy which will be used for temporary storage during writing. |
Methods inherited from class uk.ac.starlink.fits.AbstractFitsTableWriter |
---|
addMetadata, getCurrentDate, getFormatName, getMimeType, setFormatName, writePrimaryHDU, writeStarTable, writeStarTables, writeStarTables, writeTableHDU |
Methods inherited from class uk.ac.starlink.table.StreamStarTableWriter |
---|
writeStarTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.table.StarTableWriter |
---|
writeStarTable |
Constructor Detail |
---|
public VariableFitsTableWriter()
public VariableFitsTableWriter(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 conventionMethod Detail |
---|
public void setStoragePolicy(StoragePolicy storagePolicy)
storagePolicy
- policy to usepublic boolean looksLikeFile(String location)
location
- the location name (probably filename)
protected FitsTableSerializer createSerializer(StarTable table) throws IOException
AbstractFitsTableWriter
createSerializer
in class AbstractFitsTableWriter
table
- table to serialize
IOException
- if the table can't be written
|
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 |