Package org.htmlcleaner
Class ContentNode
- java.lang.Object
-
- org.htmlcleaner.BaseTokenImpl
-
- org.htmlcleaner.ContentNode
-
- Direct Known Subclasses:
CData
public class ContentNode extends BaseTokenImpl implements HtmlNode
HTML text token.
-
-
Constructor Summary
Constructors Constructor Description ContentNode(String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
boolean
isBlank()
void
serialize(Serializer serializer, Writer writer)
String
toString()
-
Methods inherited from class org.htmlcleaner.BaseTokenImpl
getCol, getRow, setCol, setRow
-
-
-
-
Field Detail
-
content
protected final String content
-
blank
protected final boolean blank
-
-
Constructor Detail
-
ContentNode
public ContentNode(String content)
-
-
Method Detail
-
getContent
public String getContent()
-
toString
public String toString()
- Overrides:
toString
in classBaseTokenImpl
-
serialize
public void serialize(Serializer serializer, Writer writer) throws IOException
- Specified by:
serialize
in interfaceBaseToken
- Throws:
IOException
-
isBlank
public boolean isBlank()
-
-