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() |
protected void |
finalize() |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public HostTxtIterator()
public HostTxtIterator(File file) throws IOException
IOException
public 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 Closeable
close
in interface AutoCloseable