public class VPFFeatureReader extends Object implements FeatureReader<SimpleFeatureType,SimpleFeature>
Modifier and Type | Field and Description |
---|---|
protected ContentState |
state
State used when reading file
|
Constructor and Description |
---|
VPFFeatureReader(ContentState contentState,
VPFFeatureType featureType) |
VPFFeatureReader(VPFFeatureType type)
Creates a new instance of VPFFeatureReader
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the underlying resources associated with this stream.
|
SimpleFeatureType |
getFeatureType()
Return the FeatureType this reader has been configured to create.
|
VPFFile |
getVPFFile(AttributeDescriptor column)
Returns the VPFFile for a particular column.
|
VPFFile |
getVPFFile(VPFColumn column)
Returns the VPFFile for a particular column.
|
boolean |
hasNext()
Query whether this FeatureReader has another Feature.
|
SimpleFeature |
next()
Reads the next Feature in the FeatureReader.
|
void |
reset()
Need to reset the stream for the next time Resets the iterator by resetting the stream.
|
protected ContentState state
public VPFFeatureReader(VPFFeatureType type)
public VPFFeatureReader(ContentState contentState, VPFFeatureType featureType) throws IOException
IOException
public void close() throws IOException
FeatureReader
close
in interface Closeable
close
in interface AutoCloseable
close
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
IOException
- if an I/O error occurspublic SimpleFeatureType getFeatureType()
FeatureReader
getFeatureType
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
public boolean hasNext() throws IOException
FeatureReader
hasNext
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
IOException
- If an error occurs determining if there are more Features.public SimpleFeature next() throws IOException, IllegalAttributeException, NoSuchElementException
FeatureReader
next
in interface FeatureReader<SimpleFeatureType,SimpleFeature>
IOException
- If an error occurs reading the Feature.IllegalAttributeException
- If the attributes read do not comply with the FeatureType.NoSuchElementException
- If there are no more Features in the Reader.public VPFFile getVPFFile(VPFColumn column)
column
- the column to search forpublic VPFFile getVPFFile(AttributeDescriptor column)
column
- the column to search forpublic void reset()
Copyright © 1996–2021 Geotools. All rights reserved.