Package ucar.nc2.util

Interface IOIterator<T>

All Superinterfaces:
AutoCloseable, Closeable

@Deprecated public interface IOIterator<T> extends Closeable
Deprecated.
will move in ver6
A Closeable Iterator that can throw an IOException
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Returns true if the iteration has more elements.
    Deprecated.
    Returns the next element in the iteration.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • hasNext

      boolean hasNext() throws IOException
      Deprecated.
      Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)
      Returns:
      true if the iteration has more elements
      Throws:
      IOException - on read error
    • next

      T next() throws IOException
      Deprecated.
      Returns the next element in the iteration.
      Returns:
      the next element in the iteration
      Throws:
      IOException - on read error
      NoSuchElementException - if the iteration has no more elements