Class HostTxtIterator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Iterator<Map.Entry<String,​HostTxtEntry>>

    class HostTxtIterator
    extends Object
    implements Iterator<Map.Entry<String,​HostTxtEntry>>, Closeable
    A class to iterate through a hosts.txt or config file without reading the whole thing into memory. Keys are always converted to lower case. Callers should iterate all the way through or call close() to ensure the underlying stream is closed. This is not used for config files. It is only used for subscriptions.
    Since:
    0.8.7, renamed from ConfigIterator in 0.9.26