|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.DefaultTreeHandler
up.TreePrinter
public class TreePrinter
A tree handler that prints the trees in a stream.
Constructor Summary | |
---|---|
TreePrinter()
Constructs a new printer that prints trees to the standard output stream. |
|
TreePrinter(java.io.File file)
Constructs a new printer that prints trees to the specified file. |
Method Summary | |
---|---|
void |
exit()
Notifies the successor of this handler about the end of the stream. |
void |
next(Tree tree)
Notifies the successor of this handler about the specified tree. |
Methods inherited from class up.DefaultTreeHandler |
---|
getSuccessor, init, setSuccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreePrinter()
public TreePrinter(java.io.File file) throws java.io.IOException
file
- the file to which to print the trees to
java.io.IOException
- if the file cannot be foundMethod Detail |
---|
public void next(Tree tree)
DefaultTreeHandler
next
in interface TreeHandler
next
in class DefaultTreeHandler
tree
- the tree about which the successor of this handler is to be
notifiedpublic void exit()
DefaultTreeHandler
exit
in interface TreeHandler
exit
in class DefaultTreeHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |