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
IOExceptionpublic IndexedFidReader(ShpFiles shpFiles, ReadableByteChannel in) throws IOException
IOExceptionpublic long getCount()
public int getRemoves()
public long findFid(String fid) throws IOException
fid - the fid to find.IOExceptionIllegalArgumentException - DOCUMENT ME!public void goTo(long recno)
throws IOException
IOExceptionpublic void close()
throws IOException
FIDReaderclose in interface FIDReaderIOExceptionpublic boolean hasNext()
throws IOException
FIDReaderhasNext in interface FIDReadertrue if more content existsIOExceptionpublic String next() throws IOException
FIDReadernext in interface FIDReaderIOExceptionpublic int currentSHXIndex()
NoSuchElementException - DOCUMENT ME!public long getCurrentFIDIndex()
public String id()
FileReaderid in interface FileReaderCopyright © 1996–2019 Geotools. All rights reserved.