Interface TreeRenderer
-
- All Known Implementing Classes:
TextTreeRenderer
,XmlTreeRenderer
public interface TreeRenderer
An object that can export a tree to an external text format.- See Also:
XmlTreeRenderer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
renderSubtree(Node node, Appendable out)
Appends the subtree rooted at the given node on the provided output writer.
-
-
-
Method Detail
-
renderSubtree
void renderSubtree(Node node, Appendable out) throws IOException
Appends the subtree rooted at the given node on the provided output writer. The implementation is free to filter out some nodes from the subtree.- Parameters:
node
- Node to renderout
- Object onto which the output is appended- Throws:
IOException
- If an IO error occurs while appending to the output
-
-