Package org.geotools.data
Class EmptyFeatureReader<T extends FeatureType,F extends Feature>
Object
EmptyFeatureReader<T,F>
- All Implemented Interfaces:
Closeable,AutoCloseable,FeatureReader<T,F>
- Direct Known Subclasses:
EmptySimpleFeatureReader
public class EmptyFeatureReader<T extends FeatureType,F extends Feature>
extends Object
implements FeatureReader<T,F>
Represents an Empty, Typed, FeatureReader.
- Author:
- Jody Garnett, Refractions Research
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyFeatureReader(T featureType) An Empty FeatureReader<SimpleFeatureType, SimpleFeature> of the providedfeatureType. -
Method Summary
-
Constructor Details
-
EmptyFeatureReader
An Empty FeatureReader<SimpleFeatureType, SimpleFeature> of the providedfeatureType.
-
-
Method Details
-
getFeatureType
Description copied from interface:FeatureReaderReturn the FeatureType this reader has been configured to create.- Specified by:
getFeatureTypein interfaceFeatureReader<T extends FeatureType,F extends Feature> - Returns:
- the FeatureType of the Features this FeatureReader will create.
- See Also:
-
next
Throws NoSuchElementException as this is an Empty FeatureReader.- Specified by:
nextin interfaceFeatureReader<T extends FeatureType,F extends Feature> - Returns:
- Does not return
- Throws:
NoSuchElementException- If there are no more Features in the Reader.- See Also:
-
hasNext
public boolean hasNext()There is no next Feature.- Specified by:
hasNextin interfaceFeatureReader<T extends FeatureType,F extends Feature> - Returns:
false- See Also:
-
close
public void close()Cleans up after Empty FeatureReader.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFeatureReader<T extends FeatureType,F extends Feature> - See Also:
-