uk.ac.gla.dcs.renaissance.mg4j.index
Class StopListProcessor

java.lang.Object
  extended by uk.ac.gla.dcs.renaissance.mg4j.index.StopListProcessor
All Implemented Interfaces:
it.unimi.dsi.lang.FlyweightPrototype<it.unimi.dsi.mg4j.index.TermProcessor>, it.unimi.dsi.mg4j.index.TermProcessor, Serializable

public class StopListProcessor
extends Object
implements it.unimi.dsi.mg4j.index.TermProcessor

See Also:
Serialized Form

Constructor Summary
StopListProcessor(BufferedReader in)
          Builds a new stop word filter
StopListProcessor(String... stopwords)
           
 
Method Summary
 it.unimi.dsi.mg4j.index.TermProcessor copy()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean processPrefix(it.unimi.dsi.lang.MutableString prefix)
           
 boolean processTerm(it.unimi.dsi.lang.MutableString term)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopListProcessor

public StopListProcessor(BufferedReader in)
                  throws IOException
Builds a new stop word filter

Parameters:
in - The input stream, that contains one word a line
Throws:
IOException - If something goes bad with the file

StopListProcessor

public StopListProcessor(String... stopwords)
Method Detail

copy

public it.unimi.dsi.mg4j.index.TermProcessor copy()
Specified by:
copy in interface it.unimi.dsi.lang.FlyweightPrototype<it.unimi.dsi.mg4j.index.TermProcessor>
Specified by:
copy in interface it.unimi.dsi.mg4j.index.TermProcessor

processPrefix

public boolean processPrefix(it.unimi.dsi.lang.MutableString prefix)
Specified by:
processPrefix in interface it.unimi.dsi.mg4j.index.TermProcessor

processTerm

public boolean processTerm(it.unimi.dsi.lang.MutableString term)
Specified by:
processTerm in interface it.unimi.dsi.mg4j.index.TermProcessor

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.