public class HeadingsParseFilter extends Object implements HtmlParseFilter
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
whitespacePattern
Pattern used to strip surpluss whitespace
|
X_POINT_ID| Constructor and Description |
|---|
HeadingsParseFilter() |
| Modifier and Type | Method and Description |
|---|---|
ParseResult |
filter(Content content,
ParseResult parseResult,
HTMLMetaTags metaTags,
DocumentFragment doc)
Adds metadata or otherwise modifies a parse of HTML content, given the DOM
tree of a page.
|
Configuration |
getConf() |
protected List<String> |
getElement(DocumentFragment doc,
String element)
Finds the specified element and returns its value
|
protected static String |
getNodeValue(Node node)
Returns the text value of the specified Node and child nodes
|
void |
setConf(Configuration conf) |
protected static Pattern whitespacePattern
public ParseResult filter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, DocumentFragment doc)
HtmlParseFilterfilter in interface HtmlParseFilterpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface Configurableprotected List<String> getElement(DocumentFragment doc, String element)
Copyright © 2021 The Apache Software Foundation