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:FeatureReader
Return the FeatureType this reader has been configured to create.- Specified by:
getFeatureType
in 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:
next
in 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:
hasNext
in interfaceFeatureReader<T extends FeatureType,
F extends Feature> - Returns:
false
- See Also:
-
close
public void close()Cleans up after Empty FeatureReader.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFeatureReader<T extends FeatureType,
F extends Feature> - See Also:
-