|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.family.PrettyPrinter
public class PrettyPrinter
This class dumps a family tree to a text file in a format that can be read by a person.
| Constructor Summary | |
|---|---|
PrettyPrinter(File file)
Creates a new pretty printer that prints to a given file. |
|
PrettyPrinter(String fileName)
Creates a new pretty printer that prints to a file of a given name. |
|
| Method Summary | |
|---|---|
void |
dump(FamilyTree tree)
Prints the contents of the given family tree in a human-readable format. |
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 PrettyPrinter(String fileName)
throws IOException
IOException
public PrettyPrinter(File file)
throws IOException
IOException| 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 | |||||||||