public final class BoilerplateBlockFilter extends java.lang.Object implements BoilerpipeFilter
TextBlock
s which have explicitly been marked as "not content".Modifier and Type | Field and Description |
---|---|
static BoilerplateBlockFilter |
INSTANCE |
Constructor and Description |
---|
BoilerplateBlockFilter() |
Modifier and Type | Method and Description |
---|---|
static BoilerplateBlockFilter |
getInstance()
Returns the singleton instance for BoilerplateBlockFilter.
|
boolean |
process(TextDocument doc)
Processes the given document
doc . |
public static final BoilerplateBlockFilter INSTANCE
public static BoilerplateBlockFilter getInstance()
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
BoilerpipeFilter
doc
.process
in interface BoilerpipeFilter
doc
- The TextDocument
that is to be processed.true
if changes have been made to the
TextDocument
.BoilerpipeProcessingException