?? piecetable.html
字號:
<BR> 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> <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 charPos)</CODE><BR> Returns the piece containing the given character position.</TD></TR></TABLE> <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> <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> tableStream, int offset, int maxCharPos, int 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 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> </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/PieceTable.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/archive/util/ms/PieceReader.html" title="class in org.archive.util.ms"><B>PREV CLASS</B></A> 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> <A HREF="PieceTable.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 © 2003-2007 Internet Archive. All Rights Reserved.</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -