|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsoup.nodes.Node
org.jsoup.nodes.TextNode
public class TextNode
A text node.
Constructor Summary | |
---|---|
TextNode(String text,
String baseUri)
Create a new TextNode representing the supplied (unencoded) text). |
Method Summary | |
---|---|
static TextNode |
createFromEncoded(String encodedText,
String baseUri)
Create a new TextNode from HTML encoded (aka escaped) data. |
String |
getWholeText()
Get the (unencoded) text of this text node, including any newlines and spaces present in the original. |
boolean |
isBlank()
Test if this text node is blank -- that is, empty or only whitespace (including newlines). |
String |
nodeName()
Get the node name of this node. |
String |
text()
Get the text content of this text node. |
TextNode |
text(String text)
Set the text content of this text node. |
String |
toString()
|
Methods inherited from class org.jsoup.nodes.Node |
---|
absUrl, addChildren, addChildren, attr, attr, attributes, baseUri, childNode, childNodes, childNodesAsArray, equals, hasAttr, hashCode, indent, nextSibling, nodeDepth, outerHtml, outerHtml, parent, previousSibling, remove, removeAttr, removeChild, replaceChild, replaceWith, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextNode(String text, String baseUri)
text
- raw textbaseUri
- base uricreateFromEncoded(String, String)
Method Detail |
---|
public String nodeName()
Node
nodeName
in class Node
public String text()
getWholeText()
public TextNode text(String text)
text
- unencoded text
public String getWholeText()
public boolean isBlank()
public String toString()
toString
in class Node
public static TextNode createFromEncoded(String encodedText, String baseUri)
encodedText
- Text containing encoded HTML (e.g. <)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |