- Made PlainTextDictionary(Reader) public from protected

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2008-05-19 05:45:31 +00:00
parent b2035b1d9a
commit 90be0daa46
1 changed files with 2 additions and 6 deletions

View File

@ -29,8 +29,6 @@ import java.io.*;
* word1<br/>
* word2<br/>
* word3<br/>
*
*
*/
public class PlainTextDictionary implements Dictionary {
@ -47,9 +45,9 @@ public class PlainTextDictionary implements Dictionary {
}
/**
* Create a dictionary based on a reader. Used by the test case.
* Creates a dictionary based on a reader.
*/
protected PlainTextDictionary(Reader reader) {
public PlainTextDictionary(Reader reader) {
in = new BufferedReader(reader);
}
@ -57,7 +55,6 @@ public class PlainTextDictionary implements Dictionary {
return new fileIterator();
}
final class fileIterator implements Iterator {
public Object next() {
if (!hasNextCalled) {
@ -77,7 +74,6 @@ public class PlainTextDictionary implements Dictionary {
return (line != null) ? true : false;
}
public void remove() {
throw new UnsupportedOperationException();
}