Class SurroundingToContentFilter
java.lang.Object
com.kohlschutter.boilerpipe.filters.simple.SurroundingToContentFilter
- All Implemented Interfaces:
BoilerpipeFilter
Marks blocks as "content" if their preceding and following blocks are both already marked
"content", and the given
TextBlockCondition is met.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextBlockConditionstatic final SurroundingToContentFilter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE_TEXT
-
cond
-
-
Constructor Details
-
SurroundingToContentFilter
-
-
Method Details
-
process
Description copied from interface:BoilerpipeFilterProcesses the given documentdoc.- Specified by:
processin interfaceBoilerpipeFilter- Parameters:
doc- TheTextDocumentthat is to be processed.- Returns:
trueif changes have been made to theTextDocument.- Throws:
BoilerpipeProcessingException
-