ucar.nc2.ft
Interface PointFeatureCollectionIterator

All Known Implementing Classes:
PointCollectionIteratorFiltered

public interface PointFeatureCollectionIterator

An iterator over PointFeatureCollections.

  try {
   while (iter.hasNext())
     process(iter.next());
  } finally {
    iter.finish();
  }
  

Author:
caron

Nested Class Summary
static interface PointFeatureCollectionIterator.Filter
          A filter on PointFeatureCollection.
 
Method Summary
 void finish()
          Make sure that the iterator is complete, and recover resources.
 boolean hasNext()
          true if another PointFeatureCollection is available
 PointFeatureCollection next()
          Returns the next PointFeatureCollection You must call hasNext() before calling next(), even if you know it will return true.
 void setBufferSize(int bytes)
          Hint to use this much memory in buffering the iteration.
 

Method Detail

hasNext

boolean hasNext()
                throws IOException
true if another PointFeatureCollection is available

Returns:
true if another PointFeatureCollection is available
Throws:
IOException - on i/o error

next

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

Returns:
the next PointFeatureCollection
Throws:
IOException - on i/o error

finish

void finish()
Make sure that the iterator is complete, and recover resources. You must complete the iteration (until hasNext() returns false) or call finish(). may be called more than once.


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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.