com.pegacat.vcf.data
Class SurveyListParser

java.lang.Object
  |
  +--com.pegacat.vcf.data.SurveyListParser

public class SurveyListParser
extends java.lang.Object

Parses a series of input surveys (generally e_sur, e_pop and e_c) into a collection of SurveyText objects.

You can use the StarSurveyParser and WorldSurveyParser objects to update the datalayer with these surveys.

Not even vaguely thread safe! Creation date: (29/05/2001 10:03:18 AM)


Field Summary
protected  int state
          current state of the parser
protected  java.util.ArrayList survey
          current survey being accumulated
protected  java.util.Collection surveys
          output collection of SurveyText objects
 
Constructor Summary
SurveyListParser(java.util.Collection _surveys, DataLayer data)
          Construct a parser, no initial data.
 
Method Summary
protected  void clear_survey()
          clear any old survey data to start on a new survey
 void parse(VoyagerText text)
          parse a list of surveys
protected  void parseline(java.lang.String line)
          parse a single line of a list of surveys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

protected int state
current state of the parser

survey

protected java.util.ArrayList survey
current survey being accumulated

surveys

protected java.util.Collection surveys
output collection of SurveyText objects
Constructor Detail

SurveyListParser

public SurveyListParser(java.util.Collection _surveys,
                        DataLayer data)
Construct a parser, no initial data.

Creation date: (29/05/2001 10:04:04 AM)

Parameters:
text - com.pegacat.vcf.data.VoyagerText
Method Detail

clear_survey

protected void clear_survey()
clear any old survey data to start on a new survey

parse

public void parse(VoyagerText text)
parse a list of surveys

parseline

protected void parseline(java.lang.String line)
parse a single line of a list of surveys