Package ucar.ma2

Interface StructureDataIterator

    • Method Detail

      • hasNext

        boolean hasNext()
                 throws IOException
        See if theres more StructureData in the iteration. You must always call this before calling next().
        Returns:
        true if more records are available
        Throws:
        IOException - on read error
      • setBufferSize

        default void setBufferSize​(int bytes)
        Hint to use this much memory in buffering the iteration. No guarentee that it will be used by the implementation.
        Parameters:
        bytes - amount of memory in bytes
      • getCurrentRecno

        int getCurrentRecno()
      • close

        default void close()
        Make sure that the iterator is complete, and recover resources. Best to put in a try/finally block like:
         try (StructureDataIterator iter = obj.getStructureDataIterator()) {
           while (iter.hasNext())
             process(iter.next());
         }
         
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable