piecetable.html

来自「网络爬虫开源代码」· HTML 代码 · 共 437 行 · 第 1/2 页

HTML
437
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the next piece in the piece table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/archive/util/ms/Piece.html" title="class in org.archive.util.ms">Piece</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/util/ms/PieceTable.html#pieceFor(int)">pieceFor</A></B>(int&nbsp;charPos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the piece containing the given character position.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="LOGGER"><!-- --></A><H3>LOGGER</H3><PRE>static final java.util.logging.Logger <B>LOGGER</B></PRE><DL><DL></DL></DL><HR><A NAME="CP1252_INDICATOR"><!-- --></A><H3>CP1252_INDICATOR</H3><PRE>static final int <B>CP1252_INDICATOR</B></PRE><DL><DD>The bit that indicates if a piece uses Cp1252 or unicode.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.util.ms.PieceTable.CP1252_INDICATOR">Constant Field Values</A></DL></DL><HR><A NAME="CP1252_MASK"><!-- --></A><H3>CP1252_MASK</H3><PRE>static final int <B>CP1252_MASK</B></PRE><DL><DD>The mask to use to clear the Cp1252 flag bit.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.util.ms.PieceTable.CP1252_MASK">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="PieceTable(org.archive.io.SeekInputStream, int, int, int)"><!-- --></A><H3>PieceTable</H3><PRE>public <B>PieceTable</B>(<A HREF="../../../../org/archive/io/SeekInputStream.html" title="class in org.archive.io">SeekInputStream</A>&nbsp;tableStream,                  int&nbsp;offset,                  int&nbsp;maxCharPos,                  int&nbsp;cachedRecords)           throws java.io.IOException</PRE><DL><DD>Constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>tableStream</CODE> - the stream containing the piece table<DD><CODE>offset</CODE> - the starting offset of the piece table<DD><CODE>maxCharPos</CODE> - the total number of characters in the document<DD><CODE>cachedRecords</CODE> - the number of piece table entries to cache<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an IO error occurs</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getMaxCharPos()"><!-- --></A><H3>getMaxCharPos</H3><PRE>public int <B>getMaxCharPos</B>()</PRE><DL><DD>Returns the maximum character position.  Put another way, returns the total number of characters in the document.<P><DD><DL><DT><B>Returns:</B><DD>the maximum character position</DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public <A HREF="../../../../org/archive/util/ms/Piece.html" title="class in org.archive.util.ms">Piece</A> <B>next</B>()           throws java.io.IOException</PRE><DL><DD>Returns the next piece in the piece table.<P><DD><DL><DT><B>Returns:</B><DD>the next piece in the piece table, or null if there is no    next piece<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an IO error occurs</DL></DD></DL><HR><A NAME="pieceFor(int)"><!-- --></A><H3>pieceFor</H3><PRE>public <A HREF="../../../../org/archive/util/ms/Piece.html" title="class in org.archive.util.ms">Piece</A> <B>pieceFor</B>(int&nbsp;charPos)               throws java.io.IOException</PRE><DL><DD>Returns the piece containing the given character position.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>charPos</CODE> - the character position whose piece to return<DT><B>Returns:</B><DD>that piece, or null if no such piece exists (if charPos    is greater than getMaxCharPos())<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an IO error occurs</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=2 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PieceTable.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/archive/util/ms/PieceReader.html" title="class in org.archive.util.ms"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?org/archive/util/ms/PieceTable.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PieceTable.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 2003-2007 Internet Archive. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?