Package uk.ac.starlink.ttools.votlint
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
public class FitsHandler extends StreamingHandler implements 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 Constructor Description FitsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptMetadata(uk.ac.starlink.table.StarTable meta)
void
acceptRow(java.lang.Object[] row)
void
endRows()
void
feed(java.io.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 uk.ac.starlink.ttools.votlint.StreamingHandler
foundRow, getFields, startElement
-
Methods inherited from class uk.ac.starlink.ttools.votlint.ElementHandler
characters, configure, endElement, error, getAncestry, getAttribute, getContext, getName, getRef, info, registerChildName, setAncestry, setAttributes, toString, warning
-
-
-
-
Method Detail
-
feed
public void feed(java.io.InputStream in) throws java.io.IOException
Description copied from class:StreamingHandler
Consumes a decoded input stream containing the data of a table, encoded according to the rules specified by this element.- Specified by:
feed
in classStreamingHandler
- Parameters:
in
- input stream to read- Throws:
java.io.IOException
-
acceptMetadata
public void acceptMetadata(uk.ac.starlink.table.StarTable meta)
- Specified by:
acceptMetadata
in interfaceuk.ac.starlink.table.TableSink
-
acceptRow
public void acceptRow(java.lang.Object[] row)
- Specified by:
acceptRow
in interfaceuk.ac.starlink.table.TableSink
-
endRows
public void endRows()
- Specified by:
endRows
in interfaceuk.ac.starlink.table.TableSink
-
-