Class FitsHandler
java.lang.Object
uk.ac.starlink.ttools.votlint.ElementHandler
uk.ac.starlink.ttools.votlint.StreamingHandler
uk.ac.starlink.ttools.votlint.FitsHandler
- All Implemented Interfaces:
uk.ac.starlink.table.TableSink
Element handler for FITS elements.
The main job this does is to read the FITS file and check that the
columns in it match the columns declared in the VOTable FIELD elements.
The messages it issues are warnings rather than errors, since the
VOTable standard explicitly says that parsers can treat inconsistencies
between FITS and VOTable metadata however they like.
- Since:
- 12 Apr 2005
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptMetadata(uk.ac.starlink.table.StarTable meta) voidvoidendRows()voidfeed(InputStream in) Consumes a decoded input stream containing the data of a table, encoded according to the rules specified by this element.Methods inherited from class StreamingHandler
foundRow, getFields, startElementMethods inherited from class ElementHandler
characters, configure, endElement, error, getAncestry, getAttribute, getContext, getName, getRef, info, registerChildName, setAncestry, setAttributes, toString, warning
-
Constructor Details
-
FitsHandler
public FitsHandler()
-
-
Method Details
-
feed
Description copied from class:StreamingHandlerConsumes a decoded input stream containing the data of a table, encoded according to the rules specified by this element.- Specified by:
feedin classStreamingHandler- Parameters:
in- input stream to read- Throws:
IOException
-
acceptMetadata
public void acceptMetadata(uk.ac.starlink.table.StarTable meta) - Specified by:
acceptMetadatain interfaceuk.ac.starlink.table.TableSink
-
acceptRow
- Specified by:
acceptRowin interfaceuk.ac.starlink.table.TableSink
-
endRows
public void endRows()- Specified by:
endRowsin interfaceuk.ac.starlink.table.TableSink
-