public class EmptyFeatureReader<T extends FeatureType,F extends Feature> extends Object implements FeatureReader<T,F>
| Constructor and Description |
|---|
EmptyFeatureReader(T featureType)
An Empty FeatureReader
featureType
. |
| Modifier and Type | Method and 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.
|
public EmptyFeatureReader(T featureType)
featureType
.featureType - public T getFeatureType()
FeatureReadergetFeatureType in interface FeatureReader<T extends FeatureType,F extends Feature>FeatureReader.getFeatureType()public F next() throws NoSuchElementException
next in interface FeatureReader<T extends FeatureType,F extends Feature>NoSuchElementExceptionFeatureReader.next()public boolean hasNext()
hasNext in interface FeatureReader<T extends FeatureType,F extends Feature>falseFeatureReader.hasNext()public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface FeatureReader<T extends FeatureType,F extends Feature>FeatureReader.close()Copyright © 1996–2019 Geotools. All rights reserved.