class HostTxtIterator extends Object implements Iterator<Map.Entry<String,HostTxtEntry>>, Closeable
| Constructor and Description |
|---|
HostTxtIterator()
A dummy iterator in which hasNext() is always false.
|
HostTxtIterator(File file)
An iterator over the key/value pairs in the file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
Map.Entry<String,HostTxtEntry> |
next()
'remove' entries will be returned with a null key,
and the value will contain a null name, null dest,
and non-null props.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic HostTxtIterator()
public HostTxtIterator(File file) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean hasNext()
hasNext in interface Iterator<Map.Entry<String,HostTxtEntry>>public Map.Entry<String,HostTxtEntry> next()
next in interface Iterator<Map.Entry<String,HostTxtEntry>>public void remove()
remove in interface Iterator<Map.Entry<String,HostTxtEntry>>