public abstract class AbstractHtmlExtractor<T> extends Object
| Constructor and Description |
|---|
AbstractHtmlExtractor(T resultObject) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
appendContent(List<Object> nodes)
Append the content of the nodes to the given result object.
|
void |
extractContent(String html)
Extract the information from the given html text.
|
protected T |
getResultObject() |
protected abstract boolean |
isFound(TagNode tagNode)
Append the content of the given
TagNode to the resultObject |
protected void |
visitBaseToken(BaseToken node) |
protected void |
visitTokenList(List<Object> nodes) |
public AbstractHtmlExtractor(T resultObject)
protected abstract void appendContent(List<Object> nodes)
nodes - protected abstract boolean isFound(TagNode tagNode)
TagNode to the resultObjecttagNode - true if appendContent() should be
called.protected T getResultObject()
protected void visitBaseToken(BaseToken node)
public void extractContent(String html)
html - Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.