|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader edu.nrao.sss.model.source.parser.VlaCalibDbHtmlReader
public class VlaCalibDbHtmlReader
A parser of the
VLA Calibrator Manual HTML page.
This parser turns the data on the above page into a
SourceCatalog
.
Version Info:
$Revision: 1324 $ |
$Date: 2008-06-04 16:42:24 -0600 (Wed, 04 Jun 2008) $ |
$Author: dharland $ |
Field Summary |
---|
Fields inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader |
---|
catalog, errors, histRecPrefix, readWasSuccessful, sourceInfoOrigin |
Constructor Summary | |
---|---|
VlaCalibDbHtmlReader()
Creates a new instance. |
|
VlaCalibDbHtmlReader(URL parentUrlForLinks)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
read(Reader in,
SourceCatalog destination)
NOTE: This method closes the incoming Reader! |
void |
setBaseUrlForLinks(URL parentUrlForLinks)
Sets the base URL for relative links found by this reader. |
void |
setPrefixForHistoricalRecords(String prefix)
Sets text that will be used as a prefix for any historical source records generated by this reader. |
Methods inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader |
---|
getCatalog, getError, getErrorCount, getErrors, getOriginOfSourceInformation, getPrefixForHistoricalRecords, getSuccess, putError, read, read, read, read, read, read, read, setOriginOfSourceInformation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VlaCalibDbHtmlReader()
public VlaCalibDbHtmlReader(URL parentUrlForLinks)
parentUrlForLinks
- serves as the parent URL for any relative URLs
found by this reader.Method Detail |
---|
public void setBaseUrlForLinks(URL parentUrlForLinks)
parentUrlForLinks
- serves as the parent URL for any relative URLs
found by this reader.public void setPrefixForHistoricalRecords(String prefix)
SourceCatalogReader
setPrefixForHistoricalRecords
in interface SourceCatalogReader
setPrefixForHistoricalRecords
in class AbstractSourceCatalogReader
prefix
- text that will be used as a prefix for any historical source
records generated by this reader.SourceCatalogReader.setPrefixForHistoricalRecords(String)
public boolean read(Reader in, SourceCatalog destination)
read
in interface SourceCatalogReader
read
in class AbstractSourceCatalogReader
in
- the source of text that can be read and turned into
Source
objects.destination
- the catalog to which the sources should be
added. If this parameter is null,
a new catalog will be created.
AbstractSourceCatalogReader.read(java.io.Reader,
edu.nrao.sss.model.source.SourceCatalog)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |