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>
7ReverseRope
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="ReverseRope";
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/RepeatedCharacterSequence.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/RopeIterator.html" title="interface 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/ReverseRope.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="ReverseRope.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 ReverseRope</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.ReverseRope</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>ReverseRope</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 representing the reversal of character sequence.
108 Internal implementation only.
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.ReverseRope">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&nbsp;<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&nbsp;
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/ReverseRope.html#ReverseRope(org.ahmadsoft.ropes.Rope)">ReverseRope</A></B>(<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A>&nbsp;rope)</CODE>
148
149<BR>
150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new rope from an underlying rope.</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/ReverseRope.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/ReverseRope.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.util.Iterator&lt;java.lang.Character&gt;</CODE></FONT></TD>
181<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#iterator(int)">iterator</A></B>(int&nbsp;start)</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator positioned to start at the specified index.</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>&nbsp;int</CODE></FONT></TD>
189<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#length()">length</A></B>()</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
197<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#reverse()">reverse</A></B>()</CODE>
198
199<BR>
200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reverses this rope.</TD>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204<CODE>&nbsp;java.util.Iterator&lt;java.lang.Character&gt;</CODE></FONT></TD>
205<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#reverseIterator(int)">reverseIterator</A></B>(int&nbsp;start)</CODE>
206
207<BR>
208&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a reverse iterator positioned to start at the specified index.</TD>
209</TR>
210<TR BGCOLOR="white" CLASS="TableRowColor">
211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
213<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#subSequence(int, int)">subSequence</A></B>(int&nbsp;start,
214            int&nbsp;end)</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;void</CODE></FONT></TD>
222<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#write(java.io.Writer)">write</A></B>(java.io.Writer&nbsp;out)</CODE>
223
224<BR>
225&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write this rope to a <code>Writer</code>.</TD>
226</TR>
227<TR BGCOLOR="white" CLASS="TableRowColor">
228<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229<CODE>&nbsp;void</CODE></FONT></TD>
230<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html#write(java.io.Writer, int, int)">write</A></B>(java.io.Writer&nbsp;out,
231      int&nbsp;offset,
232      int&nbsp;length)</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a range of this rope to a <code>Writer</code>.</TD>
236</TR>
237</TABLE>
238&nbsp;<A NAME="methods_inherited_from_class_org.ahmadsoft.ropes.impl.AbstractRope"><!-- --></A>
239<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
240<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
241<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>
242</TR>
243<TR BGCOLOR="white" CLASS="TableRowColor">
244<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#rebalance()">rebalance</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>
245</TR>
246</TABLE>
247&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
248<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
250<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
254</TR>
255</TABLE>
256&nbsp;
257<P>
258
259<!-- ========= CONSTRUCTOR DETAIL ======== -->
260
261<A NAME="constructor_detail"><!-- --></A>
262<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
264<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
265<B>Constructor Detail</B></FONT></TH>
266</TR>
267</TABLE>
268
269<A NAME="ReverseRope(org.ahmadsoft.ropes.Rope)"><!-- --></A><H3>
270ReverseRope</H3>
271<PRE>
272public <B>ReverseRope</B>(<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A>&nbsp;rope)</PRE>
273<DL>
274<DD>Constructs a new rope from an underlying rope.
275 <p>
276 Balancing algorithm works optimally when only FlatRopes or
277 SubstringRopes are supplied. Framework must guarantee this
278 as no runtime check is performed.
279<P>
280<DL>
281<DT><B>Parameters:</B><DD><CODE>rope</CODE> - </DL>
282</DL>
283
284<!-- ============ METHOD DETAIL ========== -->
285
286<A NAME="method_detail"><!-- --></A>
287<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
289<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
290<B>Method Detail</B></FONT></TH>
291</TR>
292</TABLE>
293
294<A NAME="charAt(int)"><!-- --></A><H3>
295charAt</H3>
296<PRE>
297public char <B>charAt</B>(int&nbsp;index)</PRE>
298<DL>
299<DD><DL>
300</DL>
301</DD>
302</DL>
303<HR>
304
305<A NAME="depth()"><!-- --></A><H3>
306depth</H3>
307<PRE>
308public byte <B>depth</B>()</PRE>
309<DL>
310<DD><DL>
311<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>
312</DD>
313<DD><DL>
314</DL>
315</DD>
316</DL>
317<HR>
318
319<A NAME="iterator(int)"><!-- --></A><H3>
320iterator</H3>
321<PRE>
322public java.util.Iterator&lt;java.lang.Character&gt; <B>iterator</B>(int&nbsp;start)</PRE>
323<DL>
324<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#iterator(int)">Rope</A></CODE></B></DD>
325<DD>Returns an iterator positioned to start at the specified index.
326<P>
327<DD><DL>
328<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position.
329<DT><B>Returns:</B><DD>an iterator positioned to start at the specified index.</DL>
330</DD>
331</DL>
332<HR>
333
334<A NAME="length()"><!-- --></A><H3>
335length</H3>
336<PRE>
337public int <B>length</B>()</PRE>
338<DL>
339<DD><DL>
340</DL>
341</DD>
342</DL>
343<HR>
344
345<A NAME="reverse()"><!-- --></A><H3>
346reverse</H3>
347<PRE>
348public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>reverse</B>()</PRE>
349<DL>
350<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverse()">Rope</A></CODE></B></DD>
351<DD>Reverses this rope.
352<P>
353<DD><DL>
354
355<DT><B>Returns:</B><DD>a reversed copy of this rope.</DL>
356</DD>
357</DL>
358<HR>
359
360<A NAME="reverseIterator(int)"><!-- --></A><H3>
361reverseIterator</H3>
362<PRE>
363public java.util.Iterator&lt;java.lang.Character&gt; <B>reverseIterator</B>(int&nbsp;start)</PRE>
364<DL>
365<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator(int)">Rope</A></CODE></B></DD>
366<DD>Returns a reverse iterator positioned to start at the specified index.
367 A reverse iterator moves backwards instead of forwards through a rope.
368<P>
369<DD><DL>
370<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position.
371<DT><B>Returns:</B><DD>a reverse iterator positioned to start at the specified index from
372 the end of the rope. For example, a value of 1 indicates the iterator 
373 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>
374</DD>
375</DL>
376<HR>
377
378<A NAME="subSequence(int, int)"><!-- --></A><H3>
379subSequence</H3>
380<PRE>
381public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>subSequence</B>(int&nbsp;start,
382                        int&nbsp;end)</PRE>
383<DL>
384<DD><DL>
385</DL>
386</DD>
387</DL>
388<HR>
389
390<A NAME="write(java.io.Writer)"><!-- --></A><H3>
391write</H3>
392<PRE>
393public void <B>write</B>(java.io.Writer&nbsp;out)
394           throws java.io.IOException</PRE>
395<DL>
396<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer)">Rope</A></CODE></B></DD>
397<DD>Write this rope to a <code>Writer</code>.
398<P>
399<DD><DL>
400<DT><B>Parameters:</B><DD><CODE>out</CODE> - the writer object.
401<DT><B>Throws:</B>
402<DD><CODE>java.io.IOException</CODE></DL>
403</DD>
404</DL>
405<HR>
406
407<A NAME="write(java.io.Writer, int, int)"><!-- --></A><H3>
408write</H3>
409<PRE>
410public void <B>write</B>(java.io.Writer&nbsp;out,
411                  int&nbsp;offset,
412                  int&nbsp;length)
413           throws java.io.IOException</PRE>
414<DL>
415<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>
416<DD>Write a range of this rope to a <code>Writer</code>.
417<P>
418<DD><DL>
419<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.
420<DT><B>Throws:</B>
421<DD><CODE>java.io.IOException</CODE></DL>
422</DD>
423</DL>
424<!-- ========= END OF CLASS DATA ========= -->
425<HR>
426
427
428<!-- ======= START OF BOTTOM NAVBAR ====== -->
429<A NAME="navbar_bottom"><!-- --></A>
430<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
431<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
432<TR>
433<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
434<A NAME="navbar_bottom_firstrow"><!-- --></A>
435<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
436  <TR ALIGN="center" VALIGN="top">
437  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
438  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
439  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
440  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
441  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
442  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
443  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
444  </TR>
445</TABLE>
446</TD>
447<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
448</EM>
449</TD>
450</TR>
451
452<TR>
453<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
454&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
455&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/RopeIterator.html" title="interface in org.ahmadsoft.ropes.impl"><B>NEXT CLASS</B></A></FONT></TD>
456<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
457  <A HREF="/index.html?org/ahmadsoft/ropes/impl/ReverseRope.html" target="_top"><B>FRAMES</B></A>  &nbsp;
458&nbsp;<A HREF="ReverseRope.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
459&nbsp;<SCRIPT type="text/javascript">
460  <!--
461  if(window==top) {
462    document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>');
463  }
464  //-->
465</SCRIPT>
466<NOSCRIPT>
467  <A HREF="/allclasses-noframe.html"><B>All Classes</B></A>
468</NOSCRIPT>
469
470
471</FONT></TD>
472</TR>
473<TR>
474<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
475  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
476<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
477DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
478</TR>
479</TABLE>
480<A NAME="skip-navbar_bottom"></A>
481<!-- ======== END OF BOTTOM NAVBAR ======= -->
482
483<HR>
484<i>Copyright &#169; 2008, 2009 Amin Ahmad. All Rights Reserved.</i>
485</BODY>
486</HTML>
487