mirror of https://github.com/apache/lucene.git
- 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:
parent
b2035b1d9a
commit
90be0daa46
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue