1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0) on Sat Dec 29 16:44:59 EST 2007 --> 6<TITLE> 7FlatCharArrayRope 8</TITLE> 9 10<META NAME="date" CONTENT="2007-12-29"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="/stylesheet.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="FlatCharArrayRope"; 19 } 20} 21</SCRIPT> 22<NOSCRIPT> 23</NOSCRIPT> 24 25</HEAD> 26 27<BODY BGCOLOR="white" onload="windowTitle();"> 28<HR> 29 30 31<!-- ========= START OF TOP NAVBAR ======= --> 32<A NAME="navbar_top"><!-- --></A> 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35<TR> 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37<A NAME="navbar_top_firstrow"><!-- --></A> 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 47 </TR> 48</TABLE> 49</TD> 50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 51</EM> 52</TD> 53</TR> 54 55<TR> 56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 57 <A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRopeReverseIteratorImpl.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A> 58 <A HREF="/org/ahmadsoft/ropes/impl/FlatCharSequenceRope.html" title="class in org.ahmadsoft.ropes.impl"><B>NEXT CLASS</B></A></FONT></TD> 59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 60 <A HREF="/index.html?org/ahmadsoft/ropes/impl/FlatCharArrayRope.html" target="_top"><B>FRAMES</B></A> 61 <A HREF="FlatCharArrayRope.html" target="_top"><B>NO FRAMES</B></A> 62 <SCRIPT type="text/javascript"> 63 <!-- 64 if(window==top) { 65 document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>'); 66 } 67 //--> 68</SCRIPT> 69<NOSCRIPT> 70 <A HREF="/allclasses-noframe.html"><B>All Classes</B></A> 71</NOSCRIPT> 72 73 74</FONT></TD> 75</TR> 76<TR> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 81</TR> 82</TABLE> 83<A NAME="skip-navbar_top"></A> 84<!-- ========= END OF TOP NAVBAR ========= --> 85 86<HR> 87<!-- ======== START OF CLASS DATA ======== --> 88<H2> 89<FONT SIZE="-1"> 90org.ahmadsoft.ropes.impl</FONT> 91<BR> 92Class FlatCharArrayRope</H2> 93<PRE> 94java.lang.Object 95 <IMG SRC="/resources/inherit.gif" ALT="extended by "><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">org.ahmadsoft.ropes.impl.AbstractRope</A> 96 <IMG SRC="/resources/inherit.gif" ALT="extended by "><B>org.ahmadsoft.ropes.impl.FlatCharArrayRope</B> 97</PRE> 98<DL> 99<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.CharSequence, java.lang.Comparable<java.lang.CharSequence>, java.lang.Iterable<java.lang.Character>, <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></DD> 100</DL> 101<HR> 102<DL> 103<DT><PRE>public final class <B>FlatCharArrayRope</B><DT>extends <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></DL> 104</PRE> 105 106<P> 107A rope constructed from a character array. This rope is even 108 flatter than a regular flat rope. 109<P> 110 111<P> 112<DL> 113<DT><B>Author:</B></DT> 114 <DD>Amin Ahmad</DD> 115<DT><B>See Also:</B><DD><A HREF="/serialized-form.html#org.ahmadsoft.ropes.impl.FlatCharArrayRope">Serialized Form</A></DL> 116<HR> 117 118<P> 119<!-- =========== FIELD SUMMARY =========== --> 120 121<A NAME="field_summary"><!-- --></A> 122<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 123<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 124<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 125<B>Field Summary</B></FONT></TH> 126</TR> 127</TABLE> 128 <A NAME="fields_inherited_from_class_org.ahmadsoft.ropes.Rope"><!-- --></A> 129<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 130<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 131<TH ALIGN="left"><B>Fields inherited from interface org.ahmadsoft.ropes.<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></B></TH> 132</TR> 133<TR BGCOLOR="white" CLASS="TableRowColor"> 134<TD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#BUILDER">BUILDER</A></CODE></TD> 135</TR> 136</TABLE> 137 138<!-- ======== CONSTRUCTOR SUMMARY ======== --> 139 140<A NAME="constructor_summary"><!-- --></A> 141<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 142<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 143<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 144<B>Constructor Summary</B></FONT></TH> 145</TR> 146<TR BGCOLOR="white" CLASS="TableRowColor"> 147<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#FlatCharArrayRope(char[])">FlatCharArrayRope</A></B>(char[] sequence)</CODE> 148 149<BR> 150 Constructs a new rope from a character array.</TD> 151</TR> 152<TR BGCOLOR="white" CLASS="TableRowColor"> 153<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#FlatCharArrayRope(char[], int, int)">FlatCharArrayRope</A></B>(char[] sequence, 154 int offset, 155 int length)</CODE> 156 157<BR> 158 Constructs a new rope from a character array range.</TD> 159</TR> 160</TABLE> 161 162<!-- ========== METHOD SUMMARY =========== --> 163 164<A NAME="method_summary"><!-- --></A> 165<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 166<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 167<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 168<B>Method Summary</B></FONT></TH> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 172<CODE> char</CODE></FONT></TD> 173<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#charAt(int)">charAt</A></B>(int index)</CODE> 174 175<BR> 176 </TD> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 180<CODE> byte</CODE></FONT></TD> 181<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#depth()">depth</A></B>()</CODE> 182 183<BR> 184 </TD> 185</TR> 186<TR BGCOLOR="white" CLASS="TableRowColor"> 187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 188<CODE> int</CODE></FONT></TD> 189<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#indexOf(char)">indexOf</A></B>(char ch)</CODE> 190 191<BR> 192 Returns the index within this rope of the first occurrence of the 193 specified character.</TD> 194</TR> 195<TR BGCOLOR="white" CLASS="TableRowColor"> 196<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 197<CODE> int</CODE></FONT></TD> 198<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#indexOf(char, int)">indexOf</A></B>(char ch, 199 int fromIndex)</CODE> 200 201<BR> 202 Returns the index within this rope of the first occurrence of the 203 specified character, beginning at the specified index.</TD> 204</TR> 205<TR BGCOLOR="white" CLASS="TableRowColor"> 206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 207<CODE> int</CODE></FONT></TD> 208<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#indexOf(java.lang.CharSequence, int)">indexOf</A></B>(java.lang.CharSequence sequence, 209 int fromIndex)</CODE> 210 211<BR> 212 Returns the index within this rope of the first occurrence of the 213 specified string, beginning at the specified index.</TD> 214</TR> 215<TR BGCOLOR="white" CLASS="TableRowColor"> 216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 217<CODE> java.util.Iterator<java.lang.Character></CODE></FONT></TD> 218<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#iterator(int)">iterator</A></B>(int start)</CODE> 219 220<BR> 221 Returns an iterator positioned to start at the specified index.</TD> 222</TR> 223<TR BGCOLOR="white" CLASS="TableRowColor"> 224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 225<CODE> int</CODE></FONT></TD> 226<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#length()">length</A></B>()</CODE> 227 228<BR> 229 </TD> 230</TR> 231<TR BGCOLOR="white" CLASS="TableRowColor"> 232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 233<CODE> <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD> 234<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#reverse()">reverse</A></B>()</CODE> 235 236<BR> 237 Reverses this rope.</TD> 238</TR> 239<TR BGCOLOR="white" CLASS="TableRowColor"> 240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 241<CODE> java.util.Iterator<java.lang.Character></CODE></FONT></TD> 242<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#reverseIterator(int)">reverseIterator</A></B>(int start)</CODE> 243 244<BR> 245 Returns a reverse iterator positioned to start at the specified index.</TD> 246</TR> 247<TR BGCOLOR="white" CLASS="TableRowColor"> 248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 249<CODE> <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD> 250<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#subSequence(int, int)">subSequence</A></B>(int start, 251 int end)</CODE> 252 253<BR> 254 </TD> 255</TR> 256<TR BGCOLOR="white" CLASS="TableRowColor"> 257<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 258<CODE> java.lang.String</CODE></FONT></TD> 259<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#toString()">toString</A></B>()</CODE> 260 261<BR> 262 </TD> 263</TR> 264<TR BGCOLOR="white" CLASS="TableRowColor"> 265<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 266<CODE> java.lang.String</CODE></FONT></TD> 267<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#toString(int, int)">toString</A></B>(int offset, 268 int length)</CODE> 269 270<BR> 271 Returns a <code>String</code> representation of a range 272 in this rope.</TD> 273</TR> 274<TR BGCOLOR="white" CLASS="TableRowColor"> 275<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 276<CODE> void</CODE></FONT></TD> 277<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#write(java.io.Writer)">write</A></B>(java.io.Writer out)</CODE> 278 279<BR> 280 Write this rope to a <code>Writer</code>.</TD> 281</TR> 282<TR BGCOLOR="white" CLASS="TableRowColor"> 283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 284<CODE> void</CODE></FONT></TD> 285<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/FlatCharArrayRope.html#write(java.io.Writer, int, int)">write</A></B>(java.io.Writer out, 286 int offset, 287 int length)</CODE> 288 289<BR> 290 Write a range of this rope to a <code>Writer</code>.</TD> 291</TR> 292</TABLE> 293 <A NAME="methods_inherited_from_class_org.ahmadsoft.ropes.impl.AbstractRope"><!-- --></A> 294<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 295<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 296<TH ALIGN="left"><B>Methods inherited from class org.ahmadsoft.ropes.impl.<A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></B></TH> 297</TR> 298<TR BGCOLOR="white" CLASS="TableRowColor"> 299<TD><CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#append(char)">append</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#append(java.lang.CharSequence)">append</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#append(java.lang.CharSequence, int, int)">append</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#compareTo(java.lang.CharSequence)">compareTo</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#delete(int, int)">delete</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#equals(java.lang.Object)">equals</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#hashCode()">hashCode</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(java.lang.CharSequence)">indexOf</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#insert(int, java.lang.CharSequence)">insert</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#iterator()">iterator</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#ltrim()">ltrim</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#matcher(java.util.regex.Pattern)">matcher</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#matches(java.util.regex.Pattern)">matches</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#matches(java.lang.String)">matches</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#rebalance()">rebalance</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#reverseIterator()">reverseIterator</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#rtrim()">rtrim</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#trim()">trim</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#writeReplace()">writeReplace</A></CODE></TD> 300</TR> 301</TABLE> 302 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 303<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 304<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 305<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> 306</TR> 307<TR BGCOLOR="white" CLASS="TableRowColor"> 308<TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD> 309</TR> 310</TABLE> 311 <A NAME="methods_inherited_from_class_org.ahmadsoft.ropes.Rope"><!-- --></A> 312<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 313<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 314<TH ALIGN="left"><B>Methods inherited from interface org.ahmadsoft.ropes.<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></B></TH> 315</TR> 316<TR BGCOLOR="white" CLASS="TableRowColor"> 317<TD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#append(char)">append</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#append(java.lang.CharSequence)">append</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#append(java.lang.CharSequence, int, int)">append</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#delete(int, int)">delete</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(java.lang.CharSequence)">indexOf</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#insert(int, java.lang.CharSequence)">insert</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#ltrim()">ltrim</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#matcher(java.util.regex.Pattern)">matcher</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#matches(java.util.regex.Pattern)">matches</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#matches(java.lang.String)">matches</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#rebalance()">rebalance</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator()">reverseIterator</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#rtrim()">rtrim</A>, <A HREF="/org/ahmadsoft/ropes/Rope.html#trim()">trim</A></CODE></TD> 318</TR> 319</TABLE> 320 <A NAME="methods_inherited_from_class_java.lang.Iterable"><!-- --></A> 321<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 322<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 323<TH ALIGN="left"><B>Methods inherited from interface java.lang.Iterable</B></TH> 324</TR> 325<TR BGCOLOR="white" CLASS="TableRowColor"> 326<TD><CODE>iterator</CODE></TD> 327</TR> 328</TABLE> 329 <A NAME="methods_inherited_from_class_java.lang.Comparable"><!-- --></A> 330<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 331<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 332<TH ALIGN="left"><B>Methods inherited from interface java.lang.Comparable</B></TH> 333</TR> 334<TR BGCOLOR="white" CLASS="TableRowColor"> 335<TD><CODE>compareTo</CODE></TD> 336</TR> 337</TABLE> 338 339<P> 340 341<!-- ========= CONSTRUCTOR DETAIL ======== --> 342 343<A NAME="constructor_detail"><!-- --></A> 344<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 345<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 346<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 347<B>Constructor Detail</B></FONT></TH> 348</TR> 349</TABLE> 350 351<A NAME="FlatCharArrayRope(char[])"><!-- --></A><H3> 352FlatCharArrayRope</H3> 353<PRE> 354public <B>FlatCharArrayRope</B>(char[] sequence)</PRE> 355<DL> 356<DD>Constructs a new rope from a character array. 357<P> 358<DL> 359<DT><B>Parameters:</B><DD><CODE>sequence</CODE> - the character array.</DL> 360</DL> 361<HR> 362 363<A NAME="FlatCharArrayRope(char[], int, int)"><!-- --></A><H3> 364FlatCharArrayRope</H3> 365<PRE> 366public <B>FlatCharArrayRope</B>(char[] sequence, 367 int offset, 368 int length)</PRE> 369<DL> 370<DD>Constructs a new rope from a character array range. 371<P> 372<DL> 373<DT><B>Parameters:</B><DD><CODE>sequence</CODE> - the character array.<DD><CODE>offset</CODE> - the offset in the array.<DD><CODE>length</CODE> - the length of the array.</DL> 374</DL> 375 376<!-- ============ METHOD DETAIL ========== --> 377 378<A NAME="method_detail"><!-- --></A> 379<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 380<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 381<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 382<B>Method Detail</B></FONT></TH> 383</TR> 384</TABLE> 385 386<A NAME="charAt(int)"><!-- --></A><H3> 387charAt</H3> 388<PRE> 389public char <B>charAt</B>(int index)</PRE> 390<DL> 391<DD><DL> 392<DT><B>Specified by:</B><DD><CODE>charAt</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL> 393</DD> 394<DD><DL> 395</DL> 396</DD> 397</DL> 398<HR> 399 400<A NAME="depth()"><!-- --></A><H3> 401depth</H3> 402<PRE> 403public byte <B>depth</B>()</PRE> 404<DL> 405<DD><DL> 406<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#depth()">depth</A></CODE> in class <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></CODE></DL> 407</DD> 408<DD><DL> 409</DL> 410</DD> 411</DL> 412<HR> 413 414<A NAME="indexOf(char)"><!-- --></A><H3> 415indexOf</H3> 416<PRE> 417public int <B>indexOf</B>(char ch)</PRE> 418<DL> 419<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(char)">Rope</A></CODE></B></DD> 420<DD>Returns the index within this rope of the first occurrence of the 421 specified character. If a character with value <code>ch</code> occurs 422 in the character sequence represented by this <code>Rope</code> 423 object, then the index of the first such occurrence is returned -- 424 that is, the smallest value k such that: 425 <p> 426 <code>this.charAt(k) == ch</code> 427 <p> 428 is <code>true</code>. If no such character occurs in this string, then 429 <code>-1</code> is returned. 430<P> 431<DD><DL> 432<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(char)">indexOf</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(char)">indexOf</A></CODE> in class <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></CODE></DL> 433</DD> 434<DD><DL> 435<DT><B>Parameters:</B><DD><CODE>ch</CODE> - a character. 436<DT><B>Returns:</B><DD>the index of the first occurrence of the character in the character 437 sequence represented by this object, or <code>-1</code> if the character 438 does not occur.</DL> 439</DD> 440</DL> 441<HR> 442 443<A NAME="indexOf(char, int)"><!-- --></A><H3> 444indexOf</H3> 445<PRE> 446public int <B>indexOf</B>(char ch, 447 int fromIndex)</PRE> 448<DL> 449<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(char, int)">Rope</A></CODE></B></DD> 450<DD>Returns the index within this rope of the first occurrence of the 451 specified character, beginning at the specified index. If a character 452 with value <code>ch</code> occurs in the character sequence 453 represented by this <code>Rope</code> object, then the index of the 454 first such occurrence is returned—that is, the smallest value k 455 such that: 456 <p> 457 <code>this.charAt(k) == ch</code> 458 <p> 459 is <code>true</code>. If no such character occurs in this string, then 460 <code>-1</code> is returned. 461<P> 462<DD><DL> 463<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(char, int)">indexOf</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(char, int)">indexOf</A></CODE> in class <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></CODE></DL> 464</DD> 465<DD><DL> 466<DT><B>Parameters:</B><DD><CODE>ch</CODE> - a character.<DD><CODE>fromIndex</CODE> - the index to start searching from. 467<DT><B>Returns:</B><DD>the index of the first occurrence of the character in the character 468 sequence represented by this object, or -1 if the character does not occur.</DL> 469</DD> 470</DL> 471<HR> 472 473<A NAME="indexOf(java.lang.CharSequence, int)"><!-- --></A><H3> 474indexOf</H3> 475<PRE> 476public int <B>indexOf</B>(java.lang.CharSequence sequence, 477 int fromIndex)</PRE> 478<DL> 479<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(java.lang.CharSequence, int)">Rope</A></CODE></B></DD> 480<DD>Returns the index within this rope of the first occurrence of the 481 specified string, beginning at the specified index. The value returned 482 is the smallest <i>k</i> such that: 483 <pre> 484 k >= fromIndex && this.startsWith(str, k) 485 </pre> 486 If no such <i>k</i> exists, then -1 is returned. 487<P> 488<DD><DL> 489<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#indexOf(java.lang.CharSequence, int)">indexOf</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(java.lang.CharSequence, int)">indexOf</A></CODE> in class <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></CODE></DL> 490</DD> 491<DD><DL> 492<DT><B>Parameters:</B><DD><CODE>sequence</CODE> - the string to find.<DD><CODE>fromIndex</CODE> - the index to start searching from. 493<DT><B>Returns:</B><DD>the index of the first occurrence of the specified string, or 494 -1 if the specified string does not occur.</DL> 495</DD> 496</DL> 497<HR> 498 499<A NAME="iterator(int)"><!-- --></A><H3> 500iterator</H3> 501<PRE> 502public java.util.Iterator<java.lang.Character> <B>iterator</B>(int start)</PRE> 503<DL> 504<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#iterator(int)">Rope</A></CODE></B></DD> 505<DD>Returns an iterator positioned to start at the specified index. 506<P> 507<DD><DL> 508<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#iterator(int)">iterator</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></DL> 509</DD> 510<DD><DL> 511<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position. 512<DT><B>Returns:</B><DD>an iterator positioned to start at the specified index.</DL> 513</DD> 514</DL> 515<HR> 516 517<A NAME="length()"><!-- --></A><H3> 518length</H3> 519<PRE> 520public int <B>length</B>()</PRE> 521<DL> 522<DD><DL> 523<DT><B>Specified by:</B><DD><CODE>length</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL> 524</DD> 525<DD><DL> 526</DL> 527</DD> 528</DL> 529<HR> 530 531<A NAME="reverse()"><!-- --></A><H3> 532reverse</H3> 533<PRE> 534public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>reverse</B>()</PRE> 535<DL> 536<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverse()">Rope</A></CODE></B></DD> 537<DD>Reverses this rope. 538<P> 539<DD><DL> 540<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverse()">reverse</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></DL> 541</DD> 542<DD><DL> 543 544<DT><B>Returns:</B><DD>a reversed copy of this rope.</DL> 545</DD> 546</DL> 547<HR> 548 549<A NAME="reverseIterator(int)"><!-- --></A><H3> 550reverseIterator</H3> 551<PRE> 552public java.util.Iterator<java.lang.Character> <B>reverseIterator</B>(int start)</PRE> 553<DL> 554<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator(int)">Rope</A></CODE></B></DD> 555<DD>Returns a reverse iterator positioned to start at the specified index. 556 A reverse iterator moves backwards instead of forwards through a rope. 557<P> 558<DD><DL> 559<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator(int)">reverseIterator</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></DL> 560</DD> 561<DD><DL> 562<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position. 563<DT><B>Returns:</B><DD>a reverse iterator positioned to start at the specified index from 564 the end of the rope. For example, a value of 1 indicates the iterator 565 should start 1 character before the end of the rope.<DT><B>See Also:</B><DD><A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator()"><CODE>Rope.reverseIterator()</CODE></A></DL> 566</DD> 567</DL> 568<HR> 569 570<A NAME="subSequence(int, int)"><!-- --></A><H3> 571subSequence</H3> 572<PRE> 573public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>subSequence</B>(int start, 574 int end)</PRE> 575<DL> 576<DD><DL> 577<DT><B>Specified by:</B><DD><CODE>subSequence</CODE> in interface <CODE>java.lang.CharSequence</CODE><DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#subSequence(int, int)">subSequence</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></DL> 578</DD> 579<DD><DL> 580</DL> 581</DD> 582</DL> 583<HR> 584 585<A NAME="toString()"><!-- --></A><H3> 586toString</H3> 587<PRE> 588public java.lang.String <B>toString</B>()</PRE> 589<DL> 590<DD><DL> 591<DT><B>Specified by:</B><DD><CODE>toString</CODE> in interface <CODE>java.lang.CharSequence</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#toString()">toString</A></CODE> in class <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></CODE></DL> 592</DD> 593<DD><DL> 594</DL> 595</DD> 596</DL> 597<HR> 598 599<A NAME="toString(int, int)"><!-- --></A><H3> 600toString</H3> 601<PRE> 602public java.lang.String <B>toString</B>(int offset, 603 int length)</PRE> 604<DL> 605<DD>Returns a <code>String</code> representation of a range 606 in this rope. 607<P> 608<DD><DL> 609</DL> 610</DD> 611<DD><DL> 612<DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset.<DD><CODE>length</CODE> - the length. 613<DT><B>Returns:</B><DD>a <code>String</code> representation of a range 614 in this rope.</DL> 615</DD> 616</DL> 617<HR> 618 619<A NAME="write(java.io.Writer)"><!-- --></A><H3> 620write</H3> 621<PRE> 622public void <B>write</B>(java.io.Writer out) 623 throws java.io.IOException</PRE> 624<DL> 625<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer)">Rope</A></CODE></B></DD> 626<DD>Write this rope to a <code>Writer</code>. 627<P> 628<DD><DL> 629<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer)">write</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></DL> 630</DD> 631<DD><DL> 632<DT><B>Parameters:</B><DD><CODE>out</CODE> - the writer object. 633<DT><B>Throws:</B> 634<DD><CODE>java.io.IOException</CODE></DL> 635</DD> 636</DL> 637<HR> 638 639<A NAME="write(java.io.Writer, int, int)"><!-- --></A><H3> 640write</H3> 641<PRE> 642public void <B>write</B>(java.io.Writer out, 643 int offset, 644 int length) 645 throws java.io.IOException</PRE> 646<DL> 647<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer, int, int)">Rope</A></CODE></B></DD> 648<DD>Write a range of this rope to a <code>Writer</code>. 649<P> 650<DD><DL> 651<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer, int, int)">write</A></CODE> in interface <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></DL> 652</DD> 653<DD><DL> 654<DT><B>Parameters:</B><DD><CODE>out</CODE> - the writer object.<DD><CODE>offset</CODE> - the range offset.<DD><CODE>length</CODE> - the range length. 655<DT><B>Throws:</B> 656<DD><CODE>java.io.IOException</CODE></DL> 657</DD> 658</DL> 659<!-- ========= END OF CLASS DATA ========= --> 660<HR> 661 662 663<!-- ======= START OF BOTTOM NAVBAR ====== --> 664<A NAME="navbar_bottom"><!-- --></A> 665<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 666<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 667<TR> 668<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 669<A NAME="navbar_bottom_firstrow"><!-- --></A> 670<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 671 <TR ALIGN="center" VALIGN="top"> 672 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 673 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 674 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 675 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 676 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 677 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 678 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 679 </TR> 680</TABLE> 681</TD> 682<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 683</EM> 684</TD> 685</TR> 686 687<TR> 688<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 689 <A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRopeReverseIteratorImpl.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A> 690 <A HREF="/org/ahmadsoft/ropes/impl/FlatCharSequenceRope.html" title="class in org.ahmadsoft.ropes.impl"><B>NEXT CLASS</B></A></FONT></TD> 691<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 692 <A HREF="/index.html?org/ahmadsoft/ropes/impl/FlatCharArrayRope.html" target="_top"><B>FRAMES</B></A> 693 <A HREF="FlatCharArrayRope.html" target="_top"><B>NO FRAMES</B></A> 694 <SCRIPT type="text/javascript"> 695 <!-- 696 if(window==top) { 697 document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>'); 698 } 699 //--> 700</SCRIPT> 701<NOSCRIPT> 702 <A HREF="/allclasses-noframe.html"><B>All Classes</B></A> 703</NOSCRIPT> 704 705 706</FONT></TD> 707</TR> 708<TR> 709<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 710 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 711<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 712DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 713</TR> 714</TABLE> 715<A NAME="skip-navbar_bottom"></A> 716<!-- ======== END OF BOTTOM NAVBAR ======= --> 717 718<HR> 719<i>Copyright © 2007 Amin Ahmad. All Rights Reserved.</i> 720</BODY> 721</HTML> 722