randoop.util
Class RecordListReader
Object
RecordListReader
public class RecordListReader
extends Object
Reads a list of records from a text file, where a record is
partially specified by the client of this class.
A record is a sequence of lines, beginning with the string
"START " and ending with the string "END "
where is specified by the client. For example:
START person
...
... arbitrary text
...
END person
Any lines within and between records, that are only whitespace
or start with "#", are skipped.
This class includes the functionality to parse individual records
out of a file. How each record is processed is up to the client,
who provides a RecordProcessor.
Method Summary
void |
parse(BufferedReader reader)
|
void |
parse(String inFile)
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordListReader
public RecordListReader(String recordType,
RecordProcessor proc)
parse
public void parse(String inFile)
parse
public void parse(BufferedReader reader)