ucar.nc2.ft
Interface PointFeatureIterator

All Known Implementing Classes:
PointIteratorAdapter, PointIteratorFiltered, PointIteratorImpl, PointIteratorMultidim, StandardPointFeatureIterator

public interface PointFeatureIterator

An iterator over PointFeatures

Since:
Feb 18, 2008
Author:
caron

Nested Class Summary
static interface PointFeatureIterator.Filter
          A filter on PointFeatures
 
Method Summary
 boolean hasNext()
          Check if another PointFeature is available
 PointFeature next()
          Returns the next PointFeature.
 void setBufferSize(int bytes)
          Hint to use this much memory in buffering the iteration.
 

Method Detail

hasNext

boolean hasNext()
                throws java.io.IOException
Check if another PointFeature is available

Returns:
true if another PointFeature is available
Throws:
java.io.IOException - on i/o error

next

PointFeature next()
                  throws java.io.IOException
Returns the next PointFeature. You must call hasNext() before calling next(), even if you know it will return true.

Returns:
the next PointFeature
Throws:
java.io.IOException - on i/o error

setBufferSize

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