|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.jortho.WordIterator
public class WordIterator
A implementation of an Iterator which split a large text into lines. It is used to read words lists.
Constructor Summary | |
---|---|
WordIterator(java.io.InputStream stream,
java.lang.String charsetName)
Load the directory from plain a list of words. |
|
WordIterator(java.io.Reader reader)
Load the directory from plain a list of words. |
|
WordIterator(java.net.URL filename)
Load the directory from a compressed list of words with UTF8 encoding. |
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.String |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordIterator(java.net.URL filename) throws java.io.IOException
filename
- the name of the file
java.io.IOException
- If an I/O error occurs.
java.lang.NullPointerException
- If filename is null.public WordIterator(java.io.InputStream stream, java.lang.String charsetName) throws java.io.IOException
stream
- a InputStream with wordscharsetName
- the name of a codepage for example "UTF8" or "Cp1252"
java.io.IOException
- If an I/O error occurs.
java.lang.NullPointerException
- If stream or charsetName is null.public WordIterator(java.io.Reader reader) throws java.io.IOException
reader
- a Reader with words
java.io.IOException
- If an I/O error occurs.
java.lang.NullPointerException
- If reader is null.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.String>
public java.lang.String next()
next
in interface java.util.Iterator<java.lang.String>
public void remove()
remove
in interface java.util.Iterator<java.lang.String>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |