uk.ac.cisban.rod.parsing.logfiles
Class SpottingParser

java.lang.Object
  extended by uk.ac.cisban.rod.parsing.logfiles.SpottingParser

public class SpottingParser
extends java.lang.Object

Parses the new spot log files and passes the parsed data to a LogParserListener.

Author:
Morgan Taschuk

Constructor Summary
SpottingParser()
          Empty constructor
 
Method Summary
 boolean checkIfLineIsValid(java.lang.String[] line, int lineNo)
           
 java.util.Map<java.lang.String,java.lang.Integer> getDestMap()
           
 void getListOfLists(java.lang.String in)
          Reads in the comma-separated data from the given string file.
 java.util.Map<java.lang.String,java.lang.Integer> getSourceMap()
           
 void parseSpotting(LogParserListener listener, java.lang.String filename)
          Parses the given file into a list of SpottingP, ready to be loaded to the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpottingParser

public SpottingParser()
Empty constructor

Method Detail

checkIfLineIsValid

public boolean checkIfLineIsValid(java.lang.String[] line,
                                  int lineNo)
                           throws java.text.ParseException
Throws:
java.text.ParseException

getListOfLists

public void getListOfLists(java.lang.String in)
                    throws java.io.IOException,
                           java.text.ParseException
Reads in the comma-separated data from the given string file.

Parameters:
in - the location of the file
Throws:
java.io.IOException
java.text.ParseException

parseSpotting

public void parseSpotting(LogParserListener listener,
                          java.lang.String filename)
                   throws java.io.IOException,
                          java.text.ParseException
Parses the given file into a list of SpottingP, ready to be loaded to the database.

Parameters:
filename -
Throws:
java.io.IOException
java.text.ParseException

getDestMap

public java.util.Map<java.lang.String,java.lang.Integer> getDestMap()

getSourceMap

public java.util.Map<java.lang.String,java.lang.Integer> getSourceMap()


Copyright © 2010. All Rights Reserved.