Package skyview.survey
Class XMLSurvey
- java.lang.Object
-
- skyview.survey.XMLSurvey
-
- All Implemented Interfaces:
Serializable,Component,Survey
public class XMLSurvey extends Object implements Survey
This class defines a survey based upon an XML file which contains the metadata and image information for the survey.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXMLSurvey.ImageFinderCallBackThe class the is called to find images in the Survey XML file.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoParse(SAXParser sp, DefaultHandler handler)Run a parserStringgetDescription()Get a description of the componentprotected XMLSurvey.ImageFinderCallBackgetFinderCallBack(Position pos, double size, double scale, boolean needImages)Image[]getImages(Position pos, double size, double scale)Find candidate images from this survey.Map<String,String>getMetadata()Get the metadata for the surveyStringgetName()Get the name of the compontentstatic ReadergetSurveyReader(String file)Get a buffered reader associated with the survey given a string name.voidupdateHeader(nom.tam.fits.Header h)Update a FITS header with information from the XML filevoidupdateSettings()Update the system settings
-
-
-
Constructor Detail
-
XMLSurvey
public XMLSurvey(String file)
Create a survey whose characteristics are given in an XML file.
-
-
Method Detail
-
getName
public String getName()
Get the name of the compontent
-
getDescription
public String getDescription()
Get a description of the component- Specified by:
getDescriptionin interfaceComponent
-
getImages
public Image[] getImages(Position pos, double size, double scale) throws Exception
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:
updateHeaderin interfaceSurvey
-
updateSettings
public void updateSettings()
Update the system settings- Specified by:
updateSettingsin interfaceSurvey
-
doParse
protected void doParse(SAXParser sp, DefaultHandler handler) throws Exception
Run a parser- Throws:
Exception
-
getSurveyReader
public static Reader getSurveyReader(String file) throws IOException
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
-
-