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

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

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

See Also:
Serialized Form

Nested Class Summary
static class StopListProcessor2.MutableStringCollection
           
 
Constructor Summary
StopListProcessor2(BufferedReader in)
          Builds a new stop word filter
StopListProcessor2(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

StopListProcessor2

public StopListProcessor2(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

StopListProcessor2

public StopListProcessor2(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.