Changed from overriding next(Token) to next()

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@607246 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2007-12-28 14:17:48 +00:00
parent da2a912919
commit ac27fb02de
1 changed files with 4 additions and 3 deletions

View File

@ -43,16 +43,17 @@ public class SinkTokenizer extends Tokenizer {
}
/**
* Ignores the input result Token and returns the next token out of the list of cached tokens
* @param result The input token
* Returns the next token out of the list of cached tokens
* @return The next {@link org.apache.lucene.analysis.Token} in the Sink.
* @throws IOException
*/
public Token next(Token result) throws IOException {
public Token next() throws IOException {
if (iter == null) iter = lst.iterator();
return iter.hasNext() ? (Token) iter.next() : null;
}
/**
* Override this method to cache only certain tokens, or new tokens based
* on the old tokens.