public class TerminatingBlocksFinder extends java.lang.Object implements BoilerpipeFilter
DefaultLabels.INDICATES_END_OF_TEXT
. This can be used
in conjunction with a downstream IgnoreBlocksAfterContentFilter
.IgnoreBlocksAfterContentFilter
Modifier and Type | Field and Description |
---|---|
static TerminatingBlocksFinder |
INSTANCE |
Constructor and Description |
---|
TerminatingBlocksFinder() |
Modifier and Type | Method and Description |
---|---|
static TerminatingBlocksFinder |
getInstance()
Returns the singleton instance for TerminatingBlocksFinder.
|
boolean |
process(TextDocument doc)
Processes the given document
doc . |
public static final TerminatingBlocksFinder INSTANCE
public static TerminatingBlocksFinder 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