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_03) on Mon Mar 23 17:06:57 EDT 2009 -->
6<TITLE>
7ConcatenationRope
8</TITLE>
9
10<META NAME="date" CONTENT="2009-03-23">
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="ConcatenationRope";
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>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRopeIteratorImpl.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/ConcatenationRope.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="ConcatenationRope.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 ConcatenationRope</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.ConcatenationRope</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.CharSequence, java.lang.Comparable&lt;java.lang.CharSequence&gt;, java.lang.Iterable&lt;java.lang.Character&gt;, <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>ConcatenationRope</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 that represents the concatenation of two other ropes.
108<P>
109
110<P>
111<DL>
112<DT><B>Author:</B></DT>
113  <DD>Amin Ahmad</DD>
114<DT><B>See Also:</B><DD><A HREF="/serialized-form.html#org.ahmadsoft.ropes.impl.ConcatenationRope">Serialized Form</A></DL>
115<HR>
116
117<P>
118<!-- =========== FIELD SUMMARY =========== -->
119
120<A NAME="field_summary"><!-- --></A>
121<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124<B>Field Summary</B></FONT></TH>
125</TR>
126</TABLE>
127&nbsp;<A NAME="fields_inherited_from_class_org.ahmadsoft.ropes.Rope"><!-- --></A>
128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
129<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
130<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>
131</TR>
132<TR BGCOLOR="white" CLASS="TableRowColor">
133<TD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#BUILDER">BUILDER</A></CODE></TD>
134</TR>
135</TABLE>
136&nbsp;
137<!-- ======== CONSTRUCTOR SUMMARY ======== -->
138
139<A NAME="constructor_summary"><!-- --></A>
140<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
143<B>Constructor Summary</B></FONT></TH>
144</TR>
145<TR BGCOLOR="white" CLASS="TableRowColor">
146<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#ConcatenationRope(org.ahmadsoft.ropes.Rope, org.ahmadsoft.ropes.Rope)">ConcatenationRope</A></B>(<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A>&nbsp;left,
147                  <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A>&nbsp;right)</CODE>
148
149<BR>
150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new concatenation rope from two ropes.</TD>
151</TR>
152</TABLE>
153&nbsp;
154<!-- ========== METHOD SUMMARY =========== -->
155
156<A NAME="method_summary"><!-- --></A>
157<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
158<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
159<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
160<B>Method Summary</B></FONT></TH>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>&nbsp;char</CODE></FONT></TD>
165<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#charAt(int)">charAt</A></B>(int&nbsp;index)</CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>&nbsp;byte</CODE></FONT></TD>
173<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#depth()">depth</A></B>()</CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>&nbsp;java.lang.CharSequence</CODE></FONT></TD>
181<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#getForSequentialAccess()">getForSequentialAccess</A></B>()</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A utility method that returns an instance of this rope optimized
185 for sequential access.</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
190<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#getLeft()">getLeft</A></B>()</CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the left-hand rope.</TD>
194</TR>
195<TR BGCOLOR="white" CLASS="TableRowColor">
196<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
198<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#getRight()">getRight</A></B>()</CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the right-hand rope.</TD>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205<CODE>&nbsp;java.util.Iterator&lt;java.lang.Character&gt;</CODE></FONT></TD>
206<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#iterator(int)">iterator</A></B>(int&nbsp;start)</CODE>
207
208<BR>
209&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator positioned to start at the specified index.</TD>
210</TR>
211<TR BGCOLOR="white" CLASS="TableRowColor">
212<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213<CODE>&nbsp;int</CODE></FONT></TD>
214<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#length()">length</A></B>()</CODE>
215
216<BR>
217&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
218</TR>
219<TR BGCOLOR="white" CLASS="TableRowColor">
220<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
222<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#rebalance()">rebalance</A></B>()</CODE>
223
224<BR>
225&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rebalances the current rope, returning the rebalanced rope.</TD>
226</TR>
227<TR BGCOLOR="white" CLASS="TableRowColor">
228<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
230<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#reverse()">reverse</A></B>()</CODE>
231
232<BR>
233&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reverses this rope.</TD>
234</TR>
235<TR BGCOLOR="white" CLASS="TableRowColor">
236<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237<CODE>&nbsp;java.util.Iterator&lt;java.lang.Character&gt;</CODE></FONT></TD>
238<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#reverseIterator(int)">reverseIterator</A></B>(int&nbsp;start)</CODE>
239
240<BR>
241&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a reverse iterator positioned to start at the specified index.</TD>
242</TR>
243<TR BGCOLOR="white" CLASS="TableRowColor">
244<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
245<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
246<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#subSequence(int, int)">subSequence</A></B>(int&nbsp;start,
247            int&nbsp;end)</CODE>
248
249<BR>
250&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254<CODE>&nbsp;void</CODE></FONT></TD>
255<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#write(java.io.Writer)">write</A></B>(java.io.Writer&nbsp;out)</CODE>
256
257<BR>
258&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write this rope to a <code>Writer</code>.</TD>
259</TR>
260<TR BGCOLOR="white" CLASS="TableRowColor">
261<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262<CODE>&nbsp;void</CODE></FONT></TD>
263<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRope.html#write(java.io.Writer, int, int)">write</A></B>(java.io.Writer&nbsp;out,
264      int&nbsp;offset,
265      int&nbsp;length)</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a range of this rope to a <code>Writer</code>.</TD>
269</TR>
270</TABLE>
271&nbsp;<A NAME="methods_inherited_from_class_org.ahmadsoft.ropes.impl.AbstractRope"><!-- --></A>
272<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
273<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
274<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>
275</TR>
276<TR BGCOLOR="white" CLASS="TableRowColor">
277<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#endsWith(java.lang.CharSequence)">endsWith</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#endsWith(java.lang.CharSequence, int)">endsWith</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(char)">indexOf</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(char, int)">indexOf</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(java.lang.CharSequence)">indexOf</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#indexOf(java.lang.CharSequence, int)">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#isEmpty()">isEmpty</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#iterator()">iterator</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#padEnd(int)">padEnd</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#padEnd(int, char)">padEnd</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#padStart(int)">padStart</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#padStart(int, char)">padStart</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#reverseIterator()">reverseIterator</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#startsWith(java.lang.CharSequence)">startsWith</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#startsWith(java.lang.CharSequence, int)">startsWith</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#toString()">toString</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#trim()">trim</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#trimEnd()">trimEnd</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#trimStart()">trimStart</A>, <A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#writeReplace()">writeReplace</A></CODE></TD>
278</TR>
279</TABLE>
280&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
281<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
282<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
283<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
284</TR>
285<TR BGCOLOR="white" CLASS="TableRowColor">
286<TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
287</TR>
288</TABLE>
289&nbsp;
290<P>
291
292<!-- ========= CONSTRUCTOR DETAIL ======== -->
293
294<A NAME="constructor_detail"><!-- --></A>
295<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
296<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
297<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
298<B>Constructor Detail</B></FONT></TH>
299</TR>
300</TABLE>
301
302<A NAME="ConcatenationRope(org.ahmadsoft.ropes.Rope, org.ahmadsoft.ropes.Rope)"><!-- --></A><H3>
303ConcatenationRope</H3>
304<PRE>
305public <B>ConcatenationRope</B>(<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A>&nbsp;left,
306                         <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A>&nbsp;right)</PRE>
307<DL>
308<DD>Create a new concatenation rope from two ropes.
309<P>
310<DL>
311<DT><B>Parameters:</B><DD><CODE>left</CODE> - the first rope.<DD><CODE>right</CODE> - the second rope.</DL>
312</DL>
313
314<!-- ============ METHOD DETAIL ========== -->
315
316<A NAME="method_detail"><!-- --></A>
317<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
318<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
319<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
320<B>Method Detail</B></FONT></TH>
321</TR>
322</TABLE>
323
324<A NAME="charAt(int)"><!-- --></A><H3>
325charAt</H3>
326<PRE>
327public char <B>charAt</B>(int&nbsp;index)</PRE>
328<DL>
329<DD><DL>
330</DL>
331</DD>
332</DL>
333<HR>
334
335<A NAME="depth()"><!-- --></A><H3>
336depth</H3>
337<PRE>
338public byte <B>depth</B>()</PRE>
339<DL>
340<DD><DL>
341<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>
342</DD>
343<DD><DL>
344</DL>
345</DD>
346</DL>
347<HR>
348
349<A NAME="getForSequentialAccess()"><!-- --></A><H3>
350getForSequentialAccess</H3>
351<PRE>
352public java.lang.CharSequence <B>getForSequentialAccess</B>()</PRE>
353<DL>
354<DD><B>Description copied from class: <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html#getForSequentialAccess()">AbstractRope</A></CODE></B></DD>
355<DD>A utility method that returns an instance of this rope optimized
356 for sequential access.
357<P>
358<DD><DL>
359</DL>
360</DD>
361<DD><DL>
362
363<DT><B>Returns:</B><DD></DL>
364</DD>
365</DL>
366<HR>
367
368<A NAME="getLeft()"><!-- --></A><H3>
369getLeft</H3>
370<PRE>
371public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>getLeft</B>()</PRE>
372<DL>
373<DD>Return the left-hand rope.
374<P>
375<DD><DL>
376
377<DT><B>Returns:</B><DD>the left-hand rope.</DL>
378</DD>
379</DL>
380<HR>
381
382<A NAME="getRight()"><!-- --></A><H3>
383getRight</H3>
384<PRE>
385public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>getRight</B>()</PRE>
386<DL>
387<DD>Return the right-hand rope.
388<P>
389<DD><DL>
390
391<DT><B>Returns:</B><DD>the right-hand rope.</DL>
392</DD>
393</DL>
394<HR>
395
396<A NAME="iterator(int)"><!-- --></A><H3>
397iterator</H3>
398<PRE>
399public java.util.Iterator&lt;java.lang.Character&gt; <B>iterator</B>(int&nbsp;start)</PRE>
400<DL>
401<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#iterator(int)">Rope</A></CODE></B></DD>
402<DD>Returns an iterator positioned to start at the specified index.
403<P>
404<DD><DL>
405<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position.
406<DT><B>Returns:</B><DD>an iterator positioned to start at the specified index.</DL>
407</DD>
408</DL>
409<HR>
410
411<A NAME="length()"><!-- --></A><H3>
412length</H3>
413<PRE>
414public int <B>length</B>()</PRE>
415<DL>
416<DD><DL>
417</DL>
418</DD>
419</DL>
420<HR>
421
422<A NAME="rebalance()"><!-- --></A><H3>
423rebalance</H3>
424<PRE>
425public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>rebalance</B>()</PRE>
426<DL>
427<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#rebalance()">Rope</A></CODE></B></DD>
428<DD>Rebalances the current rope, returning the rebalanced rope. In general,
429 rope rebalancing is handled automatically, but this method is provided
430 to give users more control.
431<P>
432<DD><DL>
433<DT><B>Specified by:</B><DD><CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#rebalance()">rebalance</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#rebalance()">rebalance</A></CODE> in class <CODE><A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl">AbstractRope</A></CODE></DL>
434</DD>
435<DD><DL>
436
437<DT><B>Returns:</B><DD>a rebalanced rope.</DL>
438</DD>
439</DL>
440<HR>
441
442<A NAME="reverse()"><!-- --></A><H3>
443reverse</H3>
444<PRE>
445public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>reverse</B>()</PRE>
446<DL>
447<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverse()">Rope</A></CODE></B></DD>
448<DD>Reverses this rope.
449<P>
450<DD><DL>
451
452<DT><B>Returns:</B><DD>a reversed copy of this rope.</DL>
453</DD>
454</DL>
455<HR>
456
457<A NAME="reverseIterator(int)"><!-- --></A><H3>
458reverseIterator</H3>
459<PRE>
460public java.util.Iterator&lt;java.lang.Character&gt; <B>reverseIterator</B>(int&nbsp;start)</PRE>
461<DL>
462<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator(int)">Rope</A></CODE></B></DD>
463<DD>Returns a reverse iterator positioned to start at the specified index.
464 A reverse iterator moves backwards instead of forwards through a rope.
465<P>
466<DD><DL>
467<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position.
468<DT><B>Returns:</B><DD>a reverse iterator positioned to start at the specified index from
469 the end of the rope. For example, a value of 1 indicates the iterator 
470 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>
471</DD>
472</DL>
473<HR>
474
475<A NAME="subSequence(int, int)"><!-- --></A><H3>
476subSequence</H3>
477<PRE>
478public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>subSequence</B>(int&nbsp;start,
479                        int&nbsp;end)</PRE>
480<DL>
481<DD><DL>
482</DL>
483</DD>
484</DL>
485<HR>
486
487<A NAME="write(java.io.Writer)"><!-- --></A><H3>
488write</H3>
489<PRE>
490public void <B>write</B>(java.io.Writer&nbsp;out)
491           throws java.io.IOException</PRE>
492<DL>
493<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer)">Rope</A></CODE></B></DD>
494<DD>Write this rope to a <code>Writer</code>.
495<P>
496<DD><DL>
497<DT><B>Parameters:</B><DD><CODE>out</CODE> - the writer object.
498<DT><B>Throws:</B>
499<DD><CODE>java.io.IOException</CODE></DL>
500</DD>
501</DL>
502<HR>
503
504<A NAME="write(java.io.Writer, int, int)"><!-- --></A><H3>
505write</H3>
506<PRE>
507public void <B>write</B>(java.io.Writer&nbsp;out,
508                  int&nbsp;offset,
509                  int&nbsp;length)
510           throws java.io.IOException</PRE>
511<DL>
512<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>
513<DD>Write a range of this rope to a <code>Writer</code>.
514<P>
515<DD><DL>
516<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.
517<DT><B>Throws:</B>
518<DD><CODE>java.io.IOException</CODE></DL>
519</DD>
520</DL>
521<!-- ========= END OF CLASS DATA ========= -->
522<HR>
523
524
525<!-- ======= START OF BOTTOM NAVBAR ====== -->
526<A NAME="navbar_bottom"><!-- --></A>
527<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
528<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
529<TR>
530<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
531<A NAME="navbar_bottom_firstrow"><!-- --></A>
532<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
533  <TR ALIGN="center" VALIGN="top">
534  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
535  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
536  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
537  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
538  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
539  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
540  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
541  </TR>
542</TABLE>
543</TD>
544<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
545</EM>
546</TD>
547</TR>
548
549<TR>
550<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
551&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/AbstractRope.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
552&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/ConcatenationRopeIteratorImpl.html" title="class in org.ahmadsoft.ropes.impl"><B>NEXT CLASS</B></A></FONT></TD>
553<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
554  <A HREF="/index.html?org/ahmadsoft/ropes/impl/ConcatenationRope.html" target="_top"><B>FRAMES</B></A>  &nbsp;
555&nbsp;<A HREF="ConcatenationRope.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
556&nbsp;<SCRIPT type="text/javascript">
557  <!--
558  if(window==top) {
559    document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>');
560  }
561  //-->
562</SCRIPT>
563<NOSCRIPT>
564  <A HREF="/allclasses-noframe.html"><B>All Classes</B></A>
565</NOSCRIPT>
566
567
568</FONT></TD>
569</TR>
570<TR>
571<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
572  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
573<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
574DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
575</TR>
576</TABLE>
577<A NAME="skip-navbar_bottom"></A>
578<!-- ======== END OF BOTTOM NAVBAR ======= -->
579
580<HR>
581<i>Copyright &#169; 2008, 2009 Amin Ahmad. All Rights Reserved.</i>
582</BODY>
583</HTML>
584