Closeable, AutoCloseable, Iterator<Map.Entry<String,HostTxtEntry>>class HostTxtIterator extends Object implements Iterator<Map.Entry<String,HostTxtEntry>>, Closeable
| Constructor | 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 | 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() |
forEachRemainingpublic HostTxtIterator()
public HostTxtIterator(File file) throws IOException
IOExceptionpublic 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>>public void close()
close in interface AutoCloseableclose in interface Closeable