Class DefaultAMPCleaner

java.lang.Object
com.attribyte.parser.DefaultAMPCleaner
All Implemented Interfaces:
ContentCleaner

public class DefaultAMPCleaner extends Object implements ContentCleaner
  • Constructor Details

    • DefaultAMPCleaner

      public DefaultAMPCleaner()
  • Method Details

    • transform

      public org.jsoup.nodes.Document transform(org.jsoup.nodes.Document doc)
      Description copied from interface: ContentCleaner
      Transforms the content of a document.

      The input document is modified, not copied!

      Specified by:
      transform in interface ContentCleaner
      Parameters:
      doc - The document
      Returns:
      The input document.
    • toCleanContent

      public String toCleanContent(org.jsoup.nodes.Document doc)
      Converts the document to stored content.
      Specified by:
      toCleanContent in interface ContentCleaner
      Parameters:
      doc - The document.
      Returns:
      The stored content.
    • init

      public void init(Properties props)
      Description copied from interface: ContentCleaner
      Initialize the cleaner.
      Specified by:
      init in interface ContentCleaner
      Parameters:
      props - The properties.