|
||||||||||
| 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 |
toString()
|
| Methods inherited from class org.jsoup.nodes.Node |
|---|
absUrl, addChild, attr, attr, attributes, baseUri, childNode, childNodes, equals, hasAttr, hashCode, indent, indexInList, nextSibling, nodeDepth, outerHtml, parent, previousSibling, removeAttr, removeChild, replaceChild, setBaseUri, setParentNode, 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 Nodepublic 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 | |||||||||