UnifiedFitsTableWriter
instead@Deprecated public abstract class VOTableFitsTableWriter extends AbstractFitsTableWriter
FitsTableWriter
however, the
primary extension is not left contentless, instead it gets the
text of a DATA-less VOTable written into it. This VOTable describes
the metadata of the table.
Tables stored using this (non-standard) mechanism have all the rich
metadata associated with VOTables, and benefit from the compactness
of FITS tables, withouth the considerable disadvantage of being split
into two files.Modifier | Constructor and Description |
---|---|
protected |
VOTableFitsTableWriter(java.lang.String formatName)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract CardImage[] |
getCustomPrimaryHeaderCards()
Deprecated.
Returns implementation-specific header cards to be added
to the Primary HDU of FITS files written by this writer.
|
boolean |
isMagic(byte[] buffer)
Deprecated.
Determines whether a given byte buffer looks like it contains
the start of a primary header written by this writer.
|
protected boolean |
isMagic(int icard,
java.lang.String key,
java.lang.Object value)
Deprecated.
Tests a header card to see if it looks like part of the magic number
for the format written by this handler.
|
void |
setAllowSignedByte(boolean allowSignedByte)
Deprecated.
Configures how Byte-valued columns are written.
|
void |
setVotableVersion(VOTableVersion votVersion)
Deprecated.
Sets the version of the VOTable standard to use for encoding metadata
in the primary HDU.
|
void |
writeStarTables(TableSequence tableSeq,
java.io.OutputStream out)
Deprecated.
Writes tables.
|
createSerializer, getAllowSignedByte, getAllowZeroLengthString, getConfig, getCurrentDate, getFormatName, getMetadataCards, getMimeType, getPadCharacter, getWide, getWriteDate, setAllowZeroLengthString, setFormatName, setPadCharacter, setWide, setWriteDate, writePrimaryHDU, writeStarTable, writeStarTables, writeTableHDU
writeStarTable, writeStarTable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
looksLikeFile, writeStarTable
protected VOTableFitsTableWriter(java.lang.String formatName)
formatName
- handler format namepublic void setAllowSignedByte(boolean allowSignedByte)
AbstractFitsTableWriter
TFORMn='B'
, TZERO=-128
).
If false, they are written as FITS signed 16-bit integers.setAllowSignedByte
in class AbstractFitsTableWriter
allowSignedByte
- true to write offset bytes,
false to write shortspublic void writeStarTables(TableSequence tableSeq, java.io.OutputStream out) throws java.io.IOException
AbstractFitsTableWriter
AbstractFitsTableWriter.writePrimaryHDU(java.io.OutputStream)
to write the primary HDU.
Subclasses which want to put something related to the input tables
into the primary HDU will need to override this method
(writeStarTables).writeStarTables
in interface MultiStarTableWriter
writeStarTables
in class AbstractFitsTableWriter
tableSeq
- sequence of tables to writeout
- destination streamjava.io.IOException
public void setVotableVersion(VOTableVersion votVersion)
votVersion
- VOTable version to useprotected abstract CardImage[] getCustomPrimaryHeaderCards()
public boolean isMagic(byte[] buffer)
isMagic(int,java.lang.String,java.lang.Object)
method.buffer
- start of a filebuffer
looks like it contains a
file written by this handlerprotected boolean isMagic(int icard, java.lang.String key, java.lang.Object value)
VOTableFitsTableWriter
implementation tests that
the first four cards read:
SIMPLE = T BITPIX = 8 NAXIS = 1 NAXIS1 = ???Subclasses may override this to add tests for later cards (as provided by
getCustomPrimaryHeaderCards()
).icard
- 0-based card indexkey
- card namevalue
- card value