Package com.attribyte.parser
Class DefaultAMPCleaner
java.lang.Object
com.attribyte.parser.DefaultAMPCleaner
- All Implemented Interfaces:
ContentCleaner
-
Field Summary
Fields inherited from interface com.attribyte.parser.ContentCleaner
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(Properties props) Initialize the cleaner.toCleanContent(org.jsoup.nodes.Document doc) Converts the document to stored content.org.jsoup.nodes.Documenttransform(org.jsoup.nodes.Document doc) Transforms the content of a document.
-
Constructor Details
-
DefaultAMPCleaner
public DefaultAMPCleaner()
-
-
Method Details
-
transform
public org.jsoup.nodes.Document transform(org.jsoup.nodes.Document doc) Description copied from interface:ContentCleanerTransforms the content of a document.The input document is modified, not copied!
- Specified by:
transformin interfaceContentCleaner- Parameters:
doc- The document- Returns:
- The input document.
-
toCleanContent
Converts the document to stored content.- Specified by:
toCleanContentin interfaceContentCleaner- Parameters:
doc- The document.- Returns:
- The stored content.
-
init
Description copied from interface:ContentCleanerInitialize the cleaner.- Specified by:
initin interfaceContentCleaner- Parameters:
props- The properties.
-