edu.nrao.sss.model.source.parser
Class CarmaSourceCatalogReader

java.lang.Object
  extended by edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader
      extended by edu.nrao.sss.model.source.parser.CarmaSourceCatalogReader
All Implemented Interfaces:
SourceCatalogReader

public class CarmaSourceCatalogReader
extends AbstractSourceCatalogReader


Field Summary
 
Fields inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader
catalog, errors, histRecPrefix, readWasSuccessful, sourceInfoOrigin
 
Constructor Summary
CarmaSourceCatalogReader()
          Creates a new instance.
 
Method Summary
 boolean read(Reader in, SourceCatalog destination)
          NOTE: This method closes the incoming 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, setPrefixForHistoricalRecords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarmaSourceCatalogReader

public CarmaSourceCatalogReader()
Creates a new instance.

Method Detail

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.