|
|||||||||
| 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.HduFitsTableWriter
public class HduFitsTableWriter
TableWriter which writes a single extension BINTABLE HDU containing the
table. It differs from FitsTableWriter in that it does not
write a primary HDU, so the result will only form a legal FITS file
if it is appended to an existing FITS file which already has a primary
HDU, and possibly other extension HDUs already.
This class can be used to generate a multi-extension FITS file.
| Constructor Summary | |
|---|---|
HduFitsTableWriter()
Default constructor. |
|
HduFitsTableWriter(java.lang.String name,
boolean allowSignedByte,
WideFits wide)
Custom constructor. |
|
| Method Summary | |
|---|---|
protected FitsTableSerializer |
createSerializer(StarTable table)
Provides a suitable serializer for a given table. |
boolean |
looksLikeFile(java.lang.String location)
Returns false. |
void |
writePrimaryHDU(java.io.DataOutput out)
Does nothing. |
| Methods inherited from class uk.ac.starlink.fits.AbstractFitsTableWriter |
|---|
addMetadata, getCurrentDate, getFormatName, getMimeType, setFormatName, 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 HduFitsTableWriter()
public HduFitsTableWriter(java.lang.String name,
boolean allowSignedByte,
WideFits wide)
name - writer nameallowSignedByte - 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 convention| Method Detail |
|---|
public void writePrimaryHDU(java.io.DataOutput out)
writePrimaryHDU in class AbstractFitsTableWriterout - destination streampublic boolean looksLikeFile(java.lang.String location)
location - the location name (probably filename)
protected FitsTableSerializer createSerializer(StarTable table)
throws java.io.IOException
AbstractFitsTableWriter
createSerializer in class AbstractFitsTableWritertable - table to serialize
java.io.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 | ||||||||