org.geotools.data
Class EmptyFeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>

java.lang.Object
  extended by org.geotools.data.EmptyFeatureReader<T,F>
All Implemented Interfaces:
FeatureReader<T,F>

public class EmptyFeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
extends java.lang.Object
implements FeatureReader<T,F>

Represents an Empty, Typed, FeatureReader.

Author:
Jody Garnett, Refractions Research

Constructor Summary
EmptyFeatureReader(T featureType)
          An Empty FeatureReader of the provided featureType.
 
Method Summary
 void close()
          Cleans up after Empty FeatureReader.
 T getFeatureType()
          Return the FeatureType this reader has been configured to create.
 boolean hasNext()
          There is no next Feature.
 F 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(T featureType)
An Empty FeatureReader of the provided featureType.

Parameters:
featureType -
Method Detail

getFeatureType

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

Specified by:
getFeatureType in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
Returns:
the FeatureType of the Features this FeatureReader will create.
See Also:
FeatureReader.getFeatureType()

next

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

Specified by:
next in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
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<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
Returns:
false
See Also:
FeatureReader.hasNext()

close

public void close()
Cleans up after Empty FeatureReader.

Specified by:
close in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
See Also:
FeatureReader.close()


Copyright © 1996-2010 Geotools. All Rights Reserved.