Class BoilerplateBlockFilter
- java.lang.Object
-
- com.kohlschutter.boilerpipe.filters.simple.BoilerplateBlockFilter
-
- All Implemented Interfaces:
BoilerpipeFilter
public final class BoilerplateBlockFilter extends java.lang.Object implements BoilerpipeFilter
RemovesTextBlocks which have explicitly been marked as "not content".
-
-
Field Summary
Fields Modifier and Type Field Description static BoilerplateBlockFilterINSTANCEstatic BoilerplateBlockFilterINSTANCE_KEEP_TITLEprivate java.lang.StringlabelToKeep
-
Constructor Summary
Constructors Constructor Description BoilerplateBlockFilter(java.lang.String labelToKeep)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoilerplateBlockFiltergetInstance()Returns the singleton instance for BoilerplateBlockFilter.booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE
public static final BoilerplateBlockFilter INSTANCE
-
INSTANCE_KEEP_TITLE
public static final BoilerplateBlockFilter INSTANCE_KEEP_TITLE
-
labelToKeep
private final java.lang.String labelToKeep
-
-
Method Detail
-
getInstance
public static BoilerplateBlockFilter getInstance()
Returns the singleton instance for BoilerplateBlockFilter.
-
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
-
-