Package com.attribyte.parser
Interface ContentCleaner
- All Known Implementing Classes:
DefaultAMPCleaner,DefaultContentCleaner
public interface ContentCleaner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContentCleanerA cleaner that does no transformation or cleaning. -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(Properties props) Initialize the cleaner.toCleanContent(org.jsoup.nodes.Document doc) Converts the document to a cleaned string.org.jsoup.nodes.Documenttransform(org.jsoup.nodes.Document doc) Transforms the content of a document.
-
Field Details
-
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
Converts the document to a cleaned string.- Parameters:
doc- The document.- Returns:
- The clean content.
-
init
Initialize the cleaner.- Parameters:
props- The properties.
-