Interface DataMapper.IOIterator<T>

  • Type Parameters:
    T - the type of element
    Enclosing class:
    DataMapper

    public static interface DataMapper.IOIterator<T>
    An iterator that can throw IOException.
    Author:
    Holger Eichelberger, SSE
    • Method Detail

      • hasNext

        boolean hasNext()
                 throws java.io.IOException
        Returns true if the iteration has more elements.
        Returns:
        true if the iteration has more elements
        Throws:
        java.io.IOException - if providing the next element caused an I/O problem
      • next

        T next()
        throws java.io.IOException
        Returns the next element in the iteration.
        Returns:
        the next element in the iteration
        Throws:
        java.util.NoSuchElementException - if the iteration has no more elements
        java.io.IOException - if checking for the next element caused an I/O problem