|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.shapefile.indexed.IndexedFidReader
This object reads from a file the fid of a feature in a shapefile.
| Constructor Summary | |
IndexedFidReader(java.lang.String typeName,
IndexedShapefileDataStore.Reader reader,
java.nio.channels.ReadableByteChannel readChannel)
|
|
IndexedFidReader(java.lang.String typeName,
java.nio.channels.ReadableByteChannel readChannel)
|
|
| Method Summary | |
void |
close()
Release any resources associated with this reader |
int |
currentIndex()
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. |
int |
getRemoves()
Returns the number of features that have been removed since the fid index was regenerated. |
void |
goTo(long recno)
move the reader to the recno-th entry in the file. |
boolean |
hasNext()
Returns whether another fid exists for this 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(java.lang.String typeName,
java.nio.channels.ReadableByteChannel readChannel)
throws java.io.IOException
public IndexedFidReader(java.lang.String typeName,
IndexedShapefileDataStore.Reader reader,
java.nio.channels.ReadableByteChannel readChannel)
throws 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
recno -
java.io.IOException
public void close()
throws java.io.IOException
FIDReader
close in interface FIDReaderjava.io.IOException
public boolean hasNext()
throws java.io.IOException
FIDReader
hasNext in interface FIDReadertrue if more content exists
java.io.IOException
public java.lang.String next()
throws java.io.IOException
FIDReader
next in interface FIDReaderjava.io.IOExceptionpublic int currentIndex()
java.util.NoSuchElementException - DOCUMENT ME!
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||