public class IndexedFidReader extends Object implements FIDReader, FileReader
Constructor and Description |
---|
IndexedFidReader(ShpFiles shpFiles) |
IndexedFidReader(ShpFiles shpFiles,
ReadableByteChannel in) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resources associated with this reader
|
int |
currentSHXIndex()
Returns the record number of the feature in the shx or shp that is identified by the the last
fid returned by next().
|
long |
findFid(String fid)
Returns the offset to the location in the SHX file that the fid identifies.
|
long |
getCount()
Returns the number of Fid Entries in the file.
|
long |
getCurrentFIDIndex()
Returns the index that is appended to the typename to construct the fid.
|
int |
getRemoves()
Returns the number of features that have been removed since the fid index was regenerated.
|
void |
goTo(long recno) |
boolean |
hasNext()
Returns whether another fid exists for this reader.
|
String |
id()
An id for the reader.
|
String |
next()
Gets the next FID from the Reader.
|
public IndexedFidReader(ShpFiles shpFiles) throws IOException
IOException
public IndexedFidReader(ShpFiles shpFiles, ReadableByteChannel in) throws IOException
IOException
public long getCount()
public int getRemoves()
public long findFid(String fid) throws IOException
fid
- the fid to find.IOException
IllegalArgumentException
- DOCUMENT ME!public void goTo(long recno) throws IOException
IOException
public void close() throws IOException
FIDReader
close
in interface FIDReader
IOException
public boolean hasNext() throws IOException
FIDReader
hasNext
in interface FIDReader
true
if more content existsIOException
public String next() throws IOException
FIDReader
next
in interface FIDReader
IOException
public int currentSHXIndex()
NoSuchElementException
- DOCUMENT ME!public long getCurrentFIDIndex()
public String id()
FileReader
id
in interface FileReader
Copyright © 1996–2019 Geotools. All rights reserved.