de.l3s.boilerpipe.filters.simple
Class BoilerplateBlockFilter

java.lang.Object
  extended by de.l3s.boilerpipe.filters.simple.BoilerplateBlockFilter
All Implemented Interfaces:
BoilerpipeFilter

public final class BoilerplateBlockFilter
extends java.lang.Object
implements BoilerpipeFilter

Removes TextBlocks which have explicitly been marked as "not content".

Author:
Christian Kohlsch??tter

Field Summary
static BoilerplateBlockFilter INSTANCE
           
 
Constructor Summary
BoilerplateBlockFilter()
           
 
Method Summary
static BoilerplateBlockFilter getInstance()
          Returns the singleton instance for BoilerplateBlockFilter.
 boolean process(TextDocument doc)
          Processes the given document doc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final BoilerplateBlockFilter INSTANCE
Constructor Detail

BoilerplateBlockFilter

public BoilerplateBlockFilter()
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: BoilerpipeFilter
Processes the given document doc.

Specified by:
process in interface BoilerpipeFilter
Parameters:
doc - The TextDocument that is to be processed.
Returns:
true if changes have been made to the TextDocument.
Throws:
BoilerpipeProcessingException