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
Constructors Constructor Description EmptyFeatureReader(T featureType)An Empty FeatureReaderof the provided featureType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Cleans up after Empty FeatureReader.TgetFeatureType()Return the FeatureType this reader has been configured to create.booleanhasNext()There is no next Feature.Fnext()Throws NoSuchElementException as this is an Empty FeatureReader.
-
-
-
Constructor Detail
-
EmptyFeatureReader
public EmptyFeatureReader(T featureType)
An Empty FeatureReaderof the provided featureType.
-
-
Method Detail
-
getFeatureType
public T 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:
FeatureReader.getFeatureType()
-
next
public F next() throws NoSuchElementException
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:
FeatureReader.next()
-
hasNext
public boolean hasNext()
There is no next Feature.- Specified by:
hasNextin interfaceFeatureReader<T extends FeatureType,F extends Feature>- Returns:
false- See Also:
FeatureReader.hasNext()
-
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:
FeatureReader.close()
-
-