Package skyview.survey
Class XMLSurvey
java.lang.Object
skyview.survey.XMLSurvey
- All Implemented Interfaces:
Serializable
,Component
,Survey
This class defines a survey based upon an XML file
which contains the metadata and image information for the survey.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
The class the is called to find images in the Survey XML file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doParse
(SAXParser sp, DefaultHandler handler) Run a parserGet a description of the componentprotected XMLSurvey.ImageFinderCallBack
getFinderCallBack
(Position pos, double size, double scale, boolean needImages) Image[]
Find candidate images from this survey.Get the metadata for the surveygetName()
Get the name of the compontentstatic Reader
getSurveyReader
(String file) Get a buffered reader associated with the survey given a string name.void
updateHeader
(nom.tam.fits.Header h) Update a FITS header with information from the XML filevoid
Update the system settings
-
Constructor Details
-
XMLSurvey
Create a survey whose characteristics are given in an XML file.
-
-
Method Details
-
getName
Get the name of the compontent -
getDescription
Get a description of the component- Specified by:
getDescription
in interfaceComponent
-
getImages
Find candidate images from this survey. -
getFinderCallBack
protected XMLSurvey.ImageFinderCallBack getFinderCallBack(Position pos, double size, double scale, boolean needImages) -
updateHeader
public void updateHeader(nom.tam.fits.Header h) Update a FITS header with information from the XML file- Specified by:
updateHeader
in interfaceSurvey
-
getMetadata
Get the metadata for the survey -
updateSettings
public void updateSettings()Update the system settings- Specified by:
updateSettings
in interfaceSurvey
-
doParse
Run a parser- Throws:
Exception
-
getSurveyReader
Get a buffered reader associated with the survey given a string name. If the name includes a ? it is assumed that the stream should be filtered.- Throws:
IOException
-