idl.tmt.documentparsing.filters
Class LengthFilter

java.lang.Object
  |
  +--idl.tmt.documentparsing.filters.AbstractFilter
        |
        +--idl.tmt.documentparsing.filters.LengthFilter
All Implemented Interfaces:
Filter

public class LengthFilter
extends AbstractFilter

Filter out the token based on the length of it. Return the original token or empty string Author: Junliang Zhang 8/15/03


Field Summary
(package private)  int minLength
           
 
Constructor Summary
LengthFilter()
           
LengthFilter(int minLength)
           
 
Method Summary
protected  java.lang.String filtering(java.lang.String token)
           
 int getMinLength()
           
 void setMinLength(int minLength)
           
 
Methods inherited from class idl.tmt.documentparsing.filters.AbstractFilter
filter
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

minLength

int minLength
Constructor Detail

LengthFilter

public LengthFilter()

LengthFilter

public LengthFilter(int minLength)
Method Detail

setMinLength

public void setMinLength(int minLength)

getMinLength

public int getMinLength()

filtering

protected java.lang.String filtering(java.lang.String token)
Overrides:
filtering in class AbstractFilter