Package org.htmlcleaner
Class ContentNode
- java.lang.Object
-
- org.htmlcleaner.BaseTokenImpl
-
- org.htmlcleaner.BaseHtmlNode
-
- org.htmlcleaner.ContentNode
-
- Direct Known Subclasses:
CData
public class ContentNode extends BaseHtmlNode implements HtmlNode
HTML text token.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
blank
protected java.lang.String
content
-
Fields inherited from class org.htmlcleaner.BaseHtmlNode
parent
-
-
Constructor Summary
Constructors Constructor Description ContentNode(java.lang.String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContent()
boolean
isBlank()
void
serialize(Serializer serializer, java.io.Writer writer)
java.lang.String
toString()
-
Methods inherited from class org.htmlcleaner.BaseHtmlNode
getParent, getSiblings, setParent
-
Methods inherited from class org.htmlcleaner.BaseTokenImpl
getCol, getRow, setCol, setRow
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.htmlcleaner.HtmlNode
getParent, getSiblings, setParent
-
-
-
-
Method Detail
-
getContent
public java.lang.String getContent()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBaseTokenImpl
-
serialize
public void serialize(Serializer serializer, java.io.Writer writer) throws java.io.IOException
- Specified by:
serialize
in interfaceBaseToken
- Overrides:
serialize
in classBaseHtmlNode
- Throws:
java.io.IOException
-
isBlank
public boolean isBlank()
-
-