|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.family.TextDumper
public class TextDumper
This class dumps a family tree to a destination (for example, a file) in a text-based format that is meant to be parsed by a TextParser. It is not necessarily human-readable.
TextParser| Constructor Summary | |
|---|---|
TextDumper(File file)
Creates a new text dumper that dumps to a given file. |
|
TextDumper(PrintWriter pw)
Creates a new text dumper that prints to a PrintWriter. |
|
TextDumper(String fileName)
Creates a new text dumper that dumps to a file of a given name. |
|
| Method Summary | |
|---|---|
void |
dump(FamilyTree tree)
Dumps the contents of a family tree to the desired desitination. |
static void |
main(String[] args)
Test program. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextDumper(String fileName)
throws IOException
IOException
public TextDumper(File file)
throws IOException
IOExceptionpublic TextDumper(PrintWriter pw)
PrintWriter. This way, we can dump to destinations
other than files.
| Method Detail |
|---|
public void dump(FamilyTree tree)
dump in interface Dumperpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||