Class LineCollection

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<java.lang.String>

    public class LineCollection
    extends java.lang.Object
    implements java.util.Iterator<java.lang.String>, java.io.Closeable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean hasNext()  
      java.lang.String next()  
      void remove()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining
    • Constructor Detail

      • LineCollection

        public LineCollection​(java.io.InputStream in)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • LineCollection

        public LineCollection​(java.io.File in)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • LineCollection

        public LineCollection​(java.io.Reader reader)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • LineCollection

        public LineCollection​(java.io.BufferedReader reader)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.String>
      • next

        public java.lang.String next()
        Specified by:
        next in interface java.util.Iterator<java.lang.String>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.lang.String>
      • 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