|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.cisban.rod.parsing.logfiles.SpottingParser
public class SpottingParser
Parses the new spot log files and passes the parsed data to a LogParserListener
.
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 |
---|
public SpottingParser()
Method Detail |
---|
public boolean checkIfLineIsValid(java.lang.String[] line, int lineNo) throws java.text.ParseException
java.text.ParseException
public void getListOfLists(java.lang.String in) throws java.io.IOException, java.text.ParseException
in
- the location of the file
java.io.IOException
java.text.ParseException
public void parseSpotting(LogParserListener listener, java.lang.String filename) throws java.io.IOException, java.text.ParseException
filename
-
java.io.IOException
java.text.ParseException
public java.util.Map<java.lang.String,java.lang.Integer> getDestMap()
public java.util.Map<java.lang.String,java.lang.Integer> getSourceMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |