iglu.ir
Class DropLittleWords

java.lang.Object
  |
  +--iglu.ir.DropLittleWords
All Implemented Interfaces:
DocumentFilter

public class DropLittleWords
extends java.lang.Object
implements DocumentFilter

Drops any words of length maximumSize or below (default is three).

Author:
Travis Bauer

Field Summary
(package private)  int size
           
 
Constructor Summary
DropLittleWords()
           
DropLittleWords(int maximumSize)
           
 
Method Summary
 void applyFilter(Document d)
          Apply the transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

int size
Constructor Detail

DropLittleWords

public DropLittleWords()

DropLittleWords

public DropLittleWords(int maximumSize)
Method Detail

applyFilter

public void applyFilter(Document d)
Description copied from interface: DocumentFilter
Apply the transformation.

Specified by:
applyFilter in interface DocumentFilter
Parameters:
d - a Document value