org.geotools.data
Class EmptyFeatureReader

java.lang.Object
  extended byorg.geotools.data.EmptyFeatureReader
All Implemented Interfaces:
FeatureReader

public class EmptyFeatureReader
extends java.lang.Object
implements FeatureReader

Represents an Empty, Typed, FeatureReader.

Author:
Jody Garnett, Refractions Research

Constructor Summary
EmptyFeatureReader(FeatureType featureType)
          An Empty FeatureReader of the provided featureType.
 
Method Summary
 void close()
          Cleans up after Empty FeatureReader.
 FeatureType getFeatureType()
          Return the FeatureType this reader has been configured to create.
 boolean hasNext()
          There is no next Feature.
 Feature next()
          Throws NoSuchElementException as this is an Empty FeatureReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyFeatureReader

public EmptyFeatureReader(FeatureType featureType)
An Empty FeatureReader of the provided featureType.

Parameters:
featureType -
Method Detail

getFeatureType

public FeatureType getFeatureType()
Description copied from interface: FeatureReader
Return the FeatureType this reader has been configured to create.

Specified by:
getFeatureType in interface FeatureReader
Returns:
the FeatureType of the Features this FeatureReader will create.
See Also:
FeatureReader.getFeatureType()

next

public Feature next()
             throws java.util.NoSuchElementException
Throws NoSuchElementException as this is an Empty FeatureReader.

Specified by:
next in interface FeatureReader
Returns:
Does not return
Throws:
java.util.NoSuchElementException
See Also:
FeatureReader.next()

hasNext

public boolean hasNext()
There is no next Feature.

Specified by:
hasNext in interface FeatureReader
Returns:
false
See Also:
FeatureReader.hasNext()

close

public void close()
Cleans up after Empty FeatureReader.

Specified by:
close in interface FeatureReader
See Also:
FeatureReader.close()


Copyright © GeoTools. All Rights Reserved.