ucar.nc2.ft.point
Class PointIteratorEmpty

java.lang.Object
  extended by ucar.nc2.ft.point.PointIteratorAbstract
      extended by ucar.nc2.ft.point.PointIteratorEmpty
All Implemented Interfaces:
PointFeatureIterator

public class PointIteratorEmpty
extends PointIteratorAbstract

An empty PointIterator.

Since:
Oct 1, 2009
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointIteratorAbstract
PointIteratorAbstract.Filter
 
Field Summary
 
Fields inherited from class ucar.nc2.ft.point.PointIteratorAbstract
calcBounds, collection
 
Constructor Summary
PointIteratorEmpty()
           
 
Method Summary
 void finish()
          Make sure that the iterator is complete, and recover resources.
 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.
 
Methods inherited from class ucar.nc2.ft.point.PointIteratorAbstract
calcBounds, finishCalcBounds, getBoundingBox, getCount, getDateRange, setCalculateBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointIteratorEmpty

public PointIteratorEmpty()
Method Detail

hasNext

public boolean hasNext()
                throws IOException
Description copied from interface: PointFeatureIterator
Check if another PointFeature is available

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

next

public PointFeature next()
                  throws IOException
Description copied from interface: PointFeatureIterator
Returns the next PointFeature. You must call hasNext() before calling next(), even if you know it will return true.

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

finish

public void finish()
Description copied from interface: PointFeatureIterator
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

public void setBufferSize(int bytes)
Description copied from interface: PointFeatureIterator
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.