Interface ContentCleaner

All Known Implementing Classes:
DefaultAMPCleaner, DefaultContentCleaner

public interface ContentCleaner
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ContentCleaner
    A cleaner that does no transformation or cleaning.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initialize the cleaner.
    toCleanContent(org.jsoup.nodes.Document doc)
    Converts the document to a cleaned string.
    org.jsoup.nodes.Document
    transform(org.jsoup.nodes.Document doc)
    Transforms the content of a document.
  • Field Details

    • NOOP

      static final ContentCleaner NOOP
      A cleaner that does no transformation or cleaning.
  • Method Details

    • transform

      org.jsoup.nodes.Document transform(org.jsoup.nodes.Document doc)
      Transforms the content of a document.

      The input document is modified, not copied!

      Parameters:
      doc - The document
      Returns:
      The input document.
    • toCleanContent

      String toCleanContent(org.jsoup.nodes.Document doc)
      Converts the document to a cleaned string.
      Parameters:
      doc - The document.
      Returns:
      The clean content.
    • init

      void init(Properties props)
      Initialize the cleaner.
      Parameters:
      props - The properties.