edu.nrao.sss.model.source.parser
Class XmlSourceCatalogReader
java.lang.Object
edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader
edu.nrao.sss.model.source.parser.XmlSourceCatalogReader
- All Implemented Interfaces:
- SourceCatalogReader
public class XmlSourceCatalogReader
- extends AbstractSourceCatalogReader
A parser of source catalogs that are expressed in XML.
Version Info:
$Revision: 831 $ |
$Date: 2007-08-20 10:44:24 -0600 (Mon, 20 Aug 2007) $ |
$Author: dharland $ |
- Since:
- 2007-05-17
- Author:
- David M. Harland
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, setPrefixForHistoricalRecords |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlSourceCatalogReader
public XmlSourceCatalogReader()
read
public boolean read(Reader in,
SourceCatalog destination)
- NOTE: This method closes the incoming Reader!
- Specified by:
read
in interface SourceCatalogReader
- Specified by:
read
in class AbstractSourceCatalogReader
- Parameters:
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.
- Returns:
- true if nothing unexpected occurred while reading data.
- See Also:
AbstractSourceCatalogReader.read(java.io.Reader,
edu.nrao.sss.model.source.SourceCatalog)
Copyright © 2009. All Rights Reserved.