Class FileLinesByteArrayCollection.FileLinesIterator

  • All Implemented Interfaces:
    SafelyCloseable, java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<byte[]>
    Enclosing class:
    FileLinesByteArrayCollection

    @Deprecated
    public static final class FileLinesByteArrayCollection.FileLinesIterator
    extends java.lang.Object
    implements java.util.Iterator<byte[]>, SafelyCloseable
    Deprecated.
    Please use FileLinesByteArrayIterable.iterator(java.io.InputStream, Class, EnumSet); the zipped option of this class can be simulated by passing a GZIPInputStream as decompressor.
    An iterator over the lines of a FileLinesByteArrayCollection.

    Instances of this class open an InputStream, and thus should be closed after usage. A “safety-net” finaliser tries to take care of the cases in which closing an instance is impossible. An exhausted iterator, however, will be closed automagically.

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
       
      protected void finalize()
      Deprecated.
       
      boolean hasNext()
      Deprecated.
       
      byte[] next()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, remove
    • Method Detail

      • hasNext

        public boolean hasNext()
        Deprecated.
        Specified by:
        hasNext in interface java.util.Iterator<byte[]>
      • next

        public byte[] next()
        Deprecated.
        Specified by:
        next in interface java.util.Iterator<byte[]>
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Deprecated.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable