info.bliki.htmlcleaner.util
Class AbstractHtmlExtractor<T>
java.lang.Object
info.bliki.htmlcleaner.util.AbstractHtmlExtractor<T>
- Direct Known Subclasses:
- DivErrorboxExtractor, HtmlFormExtractor
public abstract class AbstractHtmlExtractor<T>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHtmlExtractor
public AbstractHtmlExtractor(T resultObject)
appendContent
protected abstract void appendContent(java.util.List nodes)
- Append the content of the nodes to the given result object.
- Parameters:
nodes
-
isFound
protected abstract boolean isFound(TagNode tagNode)
- Append the content of the given
TagNode
to the resultObject
- Parameters:
tagNode
-
- Returns:
true
if appendContent()
should be
called.
getResultObject
protected T getResultObject()
visitTokenList
protected void visitTokenList(java.util.List nodes)
visitBaseToken
protected void visitBaseToken(BaseToken node)
extractContent
public void extractContent(java.lang.String html)
- Extract the information from the given html text.
- Parameters:
html
-
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.