Package org.jsoup.nodes
Class DataNode
- java.lang.Object
-
- org.jsoup.nodes.Node
-
- org.jsoup.nodes.DataNode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataNode
createFromEncoded(String encodedData, String baseUri)
Create a new DataNode from HTML encoded data.String
getWholeData()
Get the data contents of this node.String
nodeName()
Get the node name of this node.DataNode
setWholeData(String data)
Set the data contents of this node.String
toString()
-
Methods inherited from class org.jsoup.nodes.Node
absUrl, addChildren, addChildren, after, after, attr, attr, attributes, baseUri, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, childNodeSize, clone, doClone, ensureChildNodes, equals, hasAttr, hasSameValue, html, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeAttr, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap, wrap
-
-
-
-
Method Detail
-
nodeName
public String nodeName()
Description copied from class:Node
Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).
-
getWholeData
public String getWholeData()
Get the data contents of this node. Will be unescaped and with original new lines, space etc.- Returns:
- data
-
setWholeData
public DataNode setWholeData(String data)
Set the data contents of this node.- Parameters:
data
- unencoded data- Returns:
- this node, for chaining
-
-