public class NodePrinter
extends Object
A helper class for creating nested trees of data
| Modifiers | Name | Description |
|---|---|---|
protected IndentPrinter |
out |
Writer used for node output. |
| Constructor and description |
|---|
NodePrinter()Creates a printer that writes to System.out. |
NodePrinter(PrintWriter out)Creates a printer backed by the supplied writer. |
NodePrinter(IndentPrinter out)Creates a printer backed by the supplied IndentPrinter. |
Writer used for node output.
Creates a printer that writes to System.out.
Creates a printer backed by the supplied writer.
out - the writer to wrapCreates a printer backed by the supplied IndentPrinter.
out - the printer to usePrints the supplied node tree.
node - the node to printPrints node attributes.
attributes - the attributes to printPrints a node value list.
list - the list to printPrints the node name.
node - the node whose name should be printedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.