|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.family.TextParser
public class TextParser
This class parses the text output generated by a
TextDumper and creates a family tree.
TextDumper| Constructor Summary | |
|---|---|
TextParser(File file)
Creates a new text parser that reads its input from the given file. |
|
TextParser(Reader reader)
Creates a new text parser that reads its input from the given writer. |
|
TextParser(String fileName)
Creates a new text parser that reads its input from a file of a given name. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Test program. |
FamilyTree |
parse()
Parses the specified input source and from it creates a family tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextParser(String fileName)
throws FileNotFoundException
FileNotFoundException
public TextParser(File file)
throws FileNotFoundException
FileNotFoundExceptionpublic TextParser(Reader reader)
| Method Detail |
|---|
public FamilyTree parse()
throws FamilyTreeException
parse in interface ParserFamilyTreeException - The data source is malformattedpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||