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.
|
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