📄 indexedfidreader.html
字号:
IndexedFidReader</H3><PRE>public <B>IndexedFidReader</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> typeName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/channels/ReadableByteChannel.html" title="class or interface in java.nio.channels">ReadableByteChannel</A> readChannel) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL></DL><HR><A NAME="IndexedFidReader(java.lang.String, org.geotools.data.shapefile.indexed.RecordNumberTracker, java.nio.channels.ReadableByteChannel)"><!-- --></A><H3>IndexedFidReader</H3><PRE>public <B>IndexedFidReader</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> typeName, <A HREF="../../../../../org/geotools/data/shapefile/indexed/RecordNumberTracker.html" title="interface in org.geotools.data.shapefile.indexed">RecordNumberTracker</A> reader, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/channels/ReadableByteChannel.html" title="class or interface in java.nio.channels">ReadableByteChannel</A> readChannel) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getCount()"><!-- --></A><H3>getCount</H3><PRE>public long <B>getCount</B>()</PRE><DL><DD>Returns the number of Fid Entries in the file.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the number of Fid Entries in the file.</DL></DD></DL><HR><A NAME="getRemoves()"><!-- --></A><H3>getRemoves</H3><PRE>public int <B>getRemoves</B>()</PRE><DL><DD>Returns the number of features that have been removed since the fid index was regenerated.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the number of features that have been removed since the fid index was regenerated.</DL></DD></DL><HR><A NAME="findFid(java.lang.String)"><!-- --></A><H3>findFid</H3><PRE>public long <B>findFid</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> fid) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the offset to the location in the SHX file that the fid identifies. This search take logN time.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fid</CODE> - the fid to find.<DT><B>Returns:</B><DD>Returns the record number of the record in the SHX file that the fid identifies. Will return -1 if the fid was not found.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="goTo(long)"><!-- --></A><H3>goTo</H3><PRE>public void <B>goTo</B>(long recno) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>move the reader to the recno-th entry in the file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>recno</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/FIDReader.html" title="interface in org.geotools.data">FIDReader</A></CODE></B></DD><DD>Release any resources associated with this reader<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/FIDReader.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/FIDReader.html" title="interface in org.geotools.data">FIDReader</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="hasNext()"><!-- --></A><H3>hasNext</H3><PRE>public boolean <B>hasNext</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/FIDReader.html" title="interface in org.geotools.data">FIDReader</A></CODE></B></DD><DD>Returns whether another fid exists for this reader.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/FIDReader.html#hasNext()">hasNext</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/FIDReader.html" title="interface in org.geotools.data">FIDReader</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if more content exists<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>next</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/FIDReader.html" title="interface in org.geotools.data">FIDReader</A></CODE></B></DD><DD>Gets the next FID from the Reader.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/FIDReader.html#next()">next</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/FIDReader.html" title="interface in org.geotools.data">FIDReader</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Next featureID<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="currentIndex()"><!-- --></A><H3>currentIndex</H3><PRE>public int <B>currentIndex</B>()</PRE><DL><DD>Returns the record number of the feature in the shx or shp that is identified by the the last fid returned by next().<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the record number of the feature in the shx or shp that is identified by the the last fid returned by next().<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/NoSuchElementException.html" title="class or interface in java.util">NoSuchElementException</A></CODE> - DOCUMENT ME!</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IndexedFidReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/geotools/data/shapefile/indexed/FidIndexer.html" title="class in org.geotools.data.shapefile.indexed"><B>PREV CLASS</B></A> <A HREF="../../../../../org/geotools/data/shapefile/indexed/IndexedFidWriter.html" title="class in org.geotools.data.shapefile.indexed"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="IndexedFidReader.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -