|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.shapefile.indexed.IndexedFidReader
public class IndexedFidReader
This object reads from a file the fid of a feature in a shapefile.
Constructor Summary | |
---|---|
IndexedFidReader(ShpFiles shpFiles)
|
|
IndexedFidReader(ShpFiles shpFiles,
java.nio.channels.ReadableByteChannel in)
|
|
IndexedFidReader(ShpFiles shpFiles,
RecordNumberTracker reader)
|
Method Summary | |
---|---|
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(java.lang.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. |
java.lang.String |
id()
An id for the reader. |
java.lang.String |
next()
Gets the next FID from the Reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedFidReader(ShpFiles shpFiles) throws java.io.IOException
java.io.IOException
public IndexedFidReader(ShpFiles shpFiles, RecordNumberTracker reader) throws java.io.IOException
java.io.IOException
public IndexedFidReader(ShpFiles shpFiles, java.nio.channels.ReadableByteChannel in) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public long getCount()
public int getRemoves()
public long findFid(java.lang.String fid) throws java.io.IOException
fid
- the fid to find.
java.io.IOException
java.lang.IllegalArgumentException
- DOCUMENT ME!public void goTo(long recno) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
FIDReader
close
in interface FIDReader
java.io.IOException
public boolean hasNext() throws java.io.IOException
FIDReader
hasNext
in interface FIDReader
true
if more content exists
java.io.IOException
public java.lang.String next() throws java.io.IOException
FIDReader
next
in interface FIDReader
java.io.IOException
public int currentSHXIndex()
java.util.NoSuchElementException
- DOCUMENT ME!public long getCurrentFIDIndex()
public java.lang.String id()
FileReader
id
in interface FileReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |