randoop.util
Class RecordListReader

Object
  extended by 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.


Constructor Summary
Constructor and Description
RecordListReader(String recordType, RecordProcessor proc)
           
 
Method Summary
Modifier and Type Method and Description
 void parse(BufferedReader reader)
           
 void parse(String inFile)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordListReader

public RecordListReader(String recordType,
                        RecordProcessor proc)
Method Detail

parse

public void parse(String inFile)

parse

public void parse(BufferedReader reader)