Package org.apache.nutch.parse

# Class HtmlParseFilters

java.lang.Object
org.apache.nutch.parse.HtmlParseFilters

public class HtmlParseFilters extends Object
Creates and caches `HtmlParseFilter` implementing plugins.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `HTMLPARSEFILTER_ORDER`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HtmlParseFilters(Configuration conf)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ParseResult`
  `filter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, DocumentFragment doc)`
  Run all defined filters.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### HTMLPARSEFILTER_ORDER

    public static final String HTMLPARSEFILTER_ORDER
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### HtmlParseFilters

    public HtmlParseFilters(Configuration conf)

- ## Method Details

  - ### filter

    public ParseResult filter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, DocumentFragment doc)
    Run all defined filters.
    Parameters:
      `content` - the `Content` for a given response
      `parseResult` - the result of running on or more `Parser`'s on the content.
      `metaTags` - a populated `HTMLMetaTags` object
      `doc` - a `DocumentFragment` (DOM) which can be processed in the filtering process.
    Returns:
      a filtered `ParseResult`
    See Also:
      - `Parser.getParse(Content)`