Package org.jsoup.nodes
Class Printer.Pretty
java.lang.Object
org.jsoup.nodes.Printer
org.jsoup.nodes.Printer.Pretty
- All Implemented Interfaces:
NodeVisitor
- Direct Known Subclasses:
Printer.Outline
- Enclosing class:
Printer
Pretty Printer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jsoup.nodes.Printer
Printer.Outline, Printer.Pretty -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) void(package private) void(package private) static booleanReturns true if any of the Element's child nodes should indent.(package private) static boolean(package private) static booleanisBlankText(Node node) (package private) boolean(package private) static NodenextNonBlank(Node node) (package private) static NodepreviousNonblank(Node node) (package private) booleanshouldIndent(Node node) (package private) static boolean(package private) intMethods inherited from class org.jsoup.nodes.Printer
head, indent, printerFor, tailMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jsoup.select.NodeVisitor
traverse
-
Field Details
-
preserveWhitespace
boolean preserveWhitespace -
maxScan
private static final int maxScan- See Also:
-
-
Constructor Details
-
Pretty
Pretty(Node root, QuietAppendable accum, Document.OutputSettings settings)
-
-
Method Details
-
addHead
-
addTail
-
addNode
-
addText
-
textTrim
-
shouldIndent
-
isBlockEl
-
hasChildBlocks
Returns true if any of the Element's child nodes should indent. Checks the last 5 nodes only (to minimize scans). -
hasNonTextNodes
-
previousNonblank
-
nextNonBlank
-
isBlankText
-
tagIs
-