public class XMLSurvey extends java.lang.Object implements Survey
Modifier and Type | Class and Description |
---|---|
protected class |
XMLSurvey.ImageFinderCallBack
The class the is called to find images in the Survey
XML file.
|
Constructor and Description |
---|
XMLSurvey(java.lang.String file)
Create a survey whose characteristics are given in
an XML file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doParse(javax.xml.parsers.SAXParser sp,
org.xml.sax.helpers.DefaultHandler handler)
Run a parser
|
java.lang.String |
getDescription()
Get a description of the component
|
protected XMLSurvey.ImageFinderCallBack |
getFinderCallBack(Position pos,
double size,
double scale,
boolean needImages) |
Image[] |
getImages(Position pos,
double size,
double scale)
Find candidate images from this survey.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Get the metadata for the survey
|
java.lang.String |
getName()
Get the name of the compontent
|
static java.io.Reader |
getSurveyReader(java.lang.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 file
|
void |
updateSettings()
Update the system settings
|
public XMLSurvey(java.lang.String file)
public java.lang.String getName()
public java.lang.String getDescription()
getDescription
in interface Component
public Image[] getImages(Position pos, double size, double scale) throws java.lang.Exception
protected XMLSurvey.ImageFinderCallBack getFinderCallBack(Position pos, double size, double scale, boolean needImages)
public void updateHeader(nom.tam.fits.Header h)
updateHeader
in interface Survey
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public void updateSettings()
updateSettings
in interface Survey
protected void doParse(javax.xml.parsers.SAXParser sp, org.xml.sax.helpers.DefaultHandler handler) throws java.lang.Exception
java.lang.Exception
public static java.io.Reader getSurveyReader(java.lang.String file) throws java.io.IOException
java.io.IOException