Package | Description |
---|---|
com.jaunt |
Jaunt [website] is a web-scraping & automation library that provides a lightweight HTTP useragent (headless browser), including JSON parser.
|
Modifier and Type | Class and Description |
---|---|
class |
Comment
Represents an HTML/XHTML comment, CDATA section, DOCTYPE declaration, or processing instruction.
|
class |
Document
Represents an HTML, XHTML, or XML Document
|
class |
Element
Represents an HTML, XHTML, or XML Element.
|
class |
Elements
A container class for holding search results, which is itself searchable (inheriting search methods from Element).
|
class |
Text
Represents a text node in the DOM.
|
Modifier and Type | Method and Description |
---|---|
Node |
Node.nextNode()
Returns the next node, or null if none exists.
|
Node |
Node.nextNodeSibling()
Return the next sibling Node (ie, the next Node that has the same parent) or null if none exists.
|
Node |
Node.nextNonDescendantNode()
Return the next non-descendant Node (which may or may not be a sibling node) or returns null if none exists.
|
Node |
Node.previousNode()
Returns the previous node, or null if none exists.
|
Node |
Node.previousNodeSibling()
Return the previous sibling Node (ie, the prevous Node that has the same parent) or null if none exists.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
Element.getChildNodes()
Returns a list of child nodes; Attribute nodes are not included in the List.
|
Modifier and Type | Method and Description |
---|---|
void |
Element.addChild(Node node)
Adds the specified Node as a child after the last existing child.
|
Element |
Node.findNearestCommonAncestor(Node node) |
String |
Element.getTextContent(String delimeter,
Node startNode,
Node endNode,
boolean rangeInclusive,
boolean includeComments,
boolean excludeScripts,
boolean replaceEntities)
Returns the concatenation of all children/descendants of type Text delimited by the specified delimiter.
|
String |
Element.innerText(String delimeter,
Node startNode,
Node endNode,
boolean rangeInclusive,
boolean includeComments,
boolean excludeScripts,
boolean replaceEntities)
Deprecated.
|
boolean |
Node.isAfter(Node node)
Whether this node occurs after the specified node.
|
boolean |
Node.isBefore(Node node)
Whether this node occurs after the specified node.
|
boolean |
Node.isBetween(Node startNode,
Node endNode)
Whether or not this node occurs in the range between the specified startNode and endNode, inclusive of the start and end nodes.
|
boolean |
Node.isBetween(Node startNode,
Node endNode,
boolean inclusive)
Whether or not this node occurs in the range between the specified startNode and endNode, inclusivity as specified.
|
boolean |
Element.removeChild(Node node)
Removes the specified Node and sets the parent property of the removed Node to null.
|
Modifier and Type | Method and Description |
---|---|
void |
Element.addChildren(int index,
List<Node> nodes)
Inserts the specified Nodes at the specified index (any elements at that position are shifted down).
|
Constructor and Description |
---|
Element(String name,
List<Node> children)
Constructor
|