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 booleanblankprotected java.lang.Stringcontent-
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.StringgetContent()booleanisBlank()voidserialize(Serializer serializer, java.io.Writer writer)java.lang.StringtoString()-
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:
toStringin classBaseTokenImpl
-
serialize
public void serialize(Serializer serializer, java.io.Writer writer) throws java.io.IOException
- Specified by:
serializein interfaceBaseToken- Overrides:
serializein classBaseHtmlNode- Throws:
java.io.IOException
-
isBlank
public boolean isBlank()
-
-