LUCENE-1058: override the close method so it doesn't try to close the null Reader input

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@601748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2007-12-06 14:42:58 +00:00
parent 2e678a307d
commit 11895271a3
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ public class SinkTokenizer extends Tokenizer {
lst.add((Token) t.clone());
}
public void close() throws IOException {
//nothing to close
input = null;
lst = null;
}
/**
* Reset the internal data structures to the start at the front of the list of tokens. Should be called
* if tokens were added to the list after an invocation of {@link #next(Token)}