Class SurroundingToContentFilter
- java.lang.Object
-
- com.kohlschutter.boilerpipe.filters.simple.SurroundingToContentFilter
-
- All Implemented Interfaces:
BoilerpipeFilter
public class SurroundingToContentFilter extends java.lang.Object implements BoilerpipeFilter
Marks blocks as "content" if their preceding and following blocks are both already marked "content", and the givenTextBlockConditionis met.
-
-
Field Summary
Fields Modifier and Type Field Description private TextBlockConditioncondstatic SurroundingToContentFilterINSTANCE_TEXT
-
Constructor Summary
Constructors Constructor Description SurroundingToContentFilter(TextBlockCondition cond)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE_TEXT
public static final SurroundingToContentFilter INSTANCE_TEXT
-
cond
private final TextBlockCondition cond
-
-
Constructor Detail
-
SurroundingToContentFilter
public SurroundingToContentFilter(TextBlockCondition cond)
-
-
Method Detail
-
process
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
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
-
-