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

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

public class PstSourceCatalogReader
extends AbstractSourceCatalogReader

A parser of source catalog text files in the format used by the GBT / VLA Proposal Submission Tool (PST).

The following are the specifications for source catalog text files found in the PST User Manual:

This ASCII file must be formatted as follows:

Version Info:

$Revision: 1251 $
$Date: 2008-04-28 16:28:37 -0600 (Mon, 28 Apr 2008) $
$Author: dharland $ (last person to modify)

Since:
2007-08-09
Author:
David M. Harland

Field Summary
 
Fields inherited from class edu.nrao.sss.model.source.parser.AbstractSourceCatalogReader
catalog, errors, histRecPrefix, readWasSuccessful, sourceInfoOrigin
 
Constructor Summary
PstSourceCatalogReader()
          Creates a new instance.
 
Method Summary
 boolean read(Reader in, SourceCatalog destination)
          Reads data from in and uses it to add sources to destination.
 
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

PstSourceCatalogReader

public PstSourceCatalogReader()
Creates a new instance.

Method Detail

read

public boolean read(Reader in,
                    SourceCatalog destination)
Reads data from in and uses it to add sources to destination.

Note: this method closes the reader when it is done.

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.getCatalog(), AbstractSourceCatalogReader.getErrors()


Copyright © 2009. All Rights Reserved.