Package jnr.netdb

Class NetDBParser

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<NetDBEntry>

    class NetDBParser
    extends java.lang.Object
    implements java.lang.Iterable<NetDBEntry>, java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.Reader reader  
    • Constructor Summary

      Constructors 
      Constructor Description
      NetDBParser​(java.io.Reader r)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Iterator<NetDBEntry> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • reader

        private final java.io.Reader reader
    • Constructor Detail

      • NetDBParser

        public NetDBParser​(java.io.Reader r)
    • Method Detail

      • iterator

        public java.util.Iterator<NetDBEntry> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<NetDBEntry>
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException