|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOutputParser
public class OutputParser
The OutputParser class is a driver program, that when placed in a directory with TraceSimulator output file(s), will parse that data into a comma- separated-value file - one file a row.
Constructor Summary | |
---|---|
OutputParser()
|
Method Summary | |
---|---|
private static java.lang.String |
getColumnNames()
Get a CSV string of the column names for the data being parsed. |
private static java.io.File[] |
getFileList(java.lang.String regexp)
List all TraceSimulator output files in the current directory. |
private static java.lang.String |
handleSingleInput(java.io.File cur_file)
Parse a single TraceSimulator output file. |
static void |
main(java.lang.String[] args)
The main driver method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputParser()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Two arguments are required, in the following order. First,
a regular expression (string) matching the simulator output files which
should be processed. Second, the destination of the CSV output.
java.lang.Exception
private static java.io.File[] getFileList(java.lang.String regexp)
regexp
- Regular expression matching output to be processed.
private static java.lang.String getColumnNames()
private static java.lang.String handleSingleInput(java.io.File cur_file) throws java.lang.Exception
cur_file
- A TraceSimulator output file
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |