public class WordIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.String>
| Constructor and Description |
|---|
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.
|
public WordIterator(java.net.URL filename)
throws java.io.IOException
filename - the name of the filejava.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 wordsjava.io.IOException - If an I/O error occurs.java.lang.NullPointerException - If reader is null.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>Copyright © 2005 - 2012 i-net software. All Rights Reserved.