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 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.
-
-
-
Constructor Detail
-
EmptyFeatureReader
public EmptyFeatureReader(T featureType)
An Empty FeatureReaderof the provided 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 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:
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:
FeatureReader.next()
-
hasNext
public boolean hasNext()
There is no next Feature.- Specified by:
hasNext
in interfaceFeatureReader<T extends FeatureType,F extends Feature>
- Returns:
false
- See Also:
FeatureReader.hasNext()
-
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:
FeatureReader.close()
-
-