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>
7SubstringRope
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="SubstringRope";
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/RopeIterator.html" title="interface in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;NEXT CLASS</FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="/index.html?org/ahmadsoft/ropes/impl/SubstringRope.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="SubstringRope.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 SubstringRope</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.SubstringRope</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 class <B>SubstringRope</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>
107Represents a lazily-evaluated substring of another rope. For performance
108 reasons, the target rope must be a <code>FlatRope</code>.
109<P>
110
111<P>
112<DL>
113<DT><B>Author:</B></DT>
114  <DD>aahmad</DD>
115<DT><B>See Also:</B><DD><A HREF="/serialized-form.html#org.ahmadsoft.ropes.impl.SubstringRope">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/SubstringRope.html#SubstringRope(org.ahmadsoft.ropes.impl.FlatRope, int, int)">SubstringRope</A></B>(org.ahmadsoft.ropes.impl.FlatRope&nbsp;rope,
148              int&nbsp;offset,
149              int&nbsp;length)</CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153</TR>
154</TABLE>
155&nbsp;
156<!-- ========== METHOD SUMMARY =========== -->
157
158<A NAME="method_summary"><!-- --></A>
159<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
161<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
162<B>Method Summary</B></FONT></TH>
163</TR>
164<TR BGCOLOR="white" CLASS="TableRowColor">
165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166<CODE>&nbsp;char</CODE></FONT></TD>
167<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#charAt(int)">charAt</A></B>(int&nbsp;index)</CODE>
168
169<BR>
170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
171</TR>
172<TR BGCOLOR="white" CLASS="TableRowColor">
173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174<CODE>&nbsp;byte</CODE></FONT></TD>
175<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#depth()">depth</A></B>()</CODE>
176
177<BR>
178&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
179</TR>
180<TR BGCOLOR="white" CLASS="TableRowColor">
181<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
183<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#getRope()">getRope</A></B>()</CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the rope underlying this one.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>&nbsp;java.util.Iterator&lt;java.lang.Character&gt;</CODE></FONT></TD>
191<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#iterator(int)">iterator</A></B>(int&nbsp;start)</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator positioned to start at the specified index.</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>&nbsp;int</CODE></FONT></TD>
199<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#length()">length</A></B>()</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
207<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#reverse()">reverse</A></B>()</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reverses this rope.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;java.util.Iterator&lt;java.lang.Character&gt;</CODE></FONT></TD>
215<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#reverseIterator(int)">reverseIterator</A></B>(int&nbsp;start)</CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a reverse iterator positioned to start at the specified index.</TD>
219</TR>
220<TR BGCOLOR="white" CLASS="TableRowColor">
221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222<CODE>&nbsp;<A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A></CODE></FONT></TD>
223<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#subSequence(int, int)">subSequence</A></B>(int&nbsp;start,
224            int&nbsp;end)</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
232<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#toString()">toString</A></B>()</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>&nbsp;void</CODE></FONT></TD>
240<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#write(java.io.Writer)">write</A></B>(java.io.Writer&nbsp;out)</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write this rope to a <code>Writer</code>.</TD>
244</TR>
245<TR BGCOLOR="white" CLASS="TableRowColor">
246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247<CODE>&nbsp;void</CODE></FONT></TD>
248<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/SubstringRope.html#write(java.io.Writer, int, int)">write</A></B>(java.io.Writer&nbsp;out,
249      int&nbsp;offset,
250      int&nbsp;length)</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a range of this rope to a <code>Writer</code>.</TD>
254</TR>
255</TABLE>
256&nbsp;<A NAME="methods_inherited_from_class_org.ahmadsoft.ropes.impl.AbstractRope"><!-- --></A>
257<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
259<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>
260</TR>
261<TR BGCOLOR="white" CLASS="TableRowColor">
262<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#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>
263</TR>
264</TABLE>
265&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
266<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
267<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
268<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
272</TR>
273</TABLE>
274&nbsp;
275<P>
276
277<!-- ========= CONSTRUCTOR DETAIL ======== -->
278
279<A NAME="constructor_detail"><!-- --></A>
280<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
281<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
282<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
283<B>Constructor Detail</B></FONT></TH>
284</TR>
285</TABLE>
286
287<A NAME="SubstringRope(org.ahmadsoft.ropes.impl.FlatRope, int, int)"><!-- --></A><H3>
288SubstringRope</H3>
289<PRE>
290public <B>SubstringRope</B>(org.ahmadsoft.ropes.impl.FlatRope&nbsp;rope,
291                     int&nbsp;offset,
292                     int&nbsp;length)</PRE>
293<DL>
294</DL>
295
296<!-- ============ METHOD DETAIL ========== -->
297
298<A NAME="method_detail"><!-- --></A>
299<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
300<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
301<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
302<B>Method Detail</B></FONT></TH>
303</TR>
304</TABLE>
305
306<A NAME="charAt(int)"><!-- --></A><H3>
307charAt</H3>
308<PRE>
309public char <B>charAt</B>(int&nbsp;index)</PRE>
310<DL>
311<DD><DL>
312</DL>
313</DD>
314</DL>
315<HR>
316
317<A NAME="depth()"><!-- --></A><H3>
318depth</H3>
319<PRE>
320public byte <B>depth</B>()</PRE>
321<DL>
322<DD><DL>
323<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>
324</DD>
325<DD><DL>
326</DL>
327</DD>
328</DL>
329<HR>
330
331<A NAME="getRope()"><!-- --></A><H3>
332getRope</H3>
333<PRE>
334public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>getRope</B>()</PRE>
335<DL>
336<DD>Returns the rope underlying this one.
337<P>
338<DD><DL>
339
340<DT><B>Returns:</B><DD>the rope underlying this one.</DL>
341</DD>
342</DL>
343<HR>
344
345<A NAME="iterator(int)"><!-- --></A><H3>
346iterator</H3>
347<PRE>
348public java.util.Iterator&lt;java.lang.Character&gt; <B>iterator</B>(int&nbsp;start)</PRE>
349<DL>
350<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#iterator(int)">Rope</A></CODE></B></DD>
351<DD>Returns an iterator positioned to start at the specified index.
352<P>
353<DD><DL>
354<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position.
355<DT><B>Returns:</B><DD>an iterator positioned to start at the specified index.</DL>
356</DD>
357</DL>
358<HR>
359
360<A NAME="length()"><!-- --></A><H3>
361length</H3>
362<PRE>
363public int <B>length</B>()</PRE>
364<DL>
365<DD><DL>
366</DL>
367</DD>
368</DL>
369<HR>
370
371<A NAME="reverse()"><!-- --></A><H3>
372reverse</H3>
373<PRE>
374public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>reverse</B>()</PRE>
375<DL>
376<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverse()">Rope</A></CODE></B></DD>
377<DD>Reverses this rope.
378<P>
379<DD><DL>
380
381<DT><B>Returns:</B><DD>a reversed copy of this rope.</DL>
382</DD>
383</DL>
384<HR>
385
386<A NAME="reverseIterator(int)"><!-- --></A><H3>
387reverseIterator</H3>
388<PRE>
389public java.util.Iterator&lt;java.lang.Character&gt; <B>reverseIterator</B>(int&nbsp;start)</PRE>
390<DL>
391<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#reverseIterator(int)">Rope</A></CODE></B></DD>
392<DD>Returns a reverse iterator positioned to start at the specified index.
393 A reverse iterator moves backwards instead of forwards through a rope.
394<P>
395<DD><DL>
396<DT><B>Parameters:</B><DD><CODE>start</CODE> - the start position.
397<DT><B>Returns:</B><DD>a reverse iterator positioned to start at the specified index from
398 the end of the rope. For example, a value of 1 indicates the iterator 
399 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>
400</DD>
401</DL>
402<HR>
403
404<A NAME="subSequence(int, int)"><!-- --></A><H3>
405subSequence</H3>
406<PRE>
407public <A HREF="/org/ahmadsoft/ropes/Rope.html" title="interface in org.ahmadsoft.ropes">Rope</A> <B>subSequence</B>(int&nbsp;start,
408                        int&nbsp;end)</PRE>
409<DL>
410<DD><DL>
411</DL>
412</DD>
413</DL>
414<HR>
415
416<A NAME="toString()"><!-- --></A><H3>
417toString</H3>
418<PRE>
419public java.lang.String <B>toString</B>()</PRE>
420<DL>
421<DD><DL>
422<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>
423</DD>
424<DD><DL>
425</DL>
426</DD>
427</DL>
428<HR>
429
430<A NAME="write(java.io.Writer)"><!-- --></A><H3>
431write</H3>
432<PRE>
433public void <B>write</B>(java.io.Writer&nbsp;out)
434           throws java.io.IOException</PRE>
435<DL>
436<DD><B>Description copied from interface: <CODE><A HREF="/org/ahmadsoft/ropes/Rope.html#write(java.io.Writer)">Rope</A></CODE></B></DD>
437<DD>Write this rope to a <code>Writer</code>.
438<P>
439<DD><DL>
440<DT><B>Parameters:</B><DD><CODE>out</CODE> - the writer object.
441<DT><B>Throws:</B>
442<DD><CODE>java.io.IOException</CODE></DL>
443</DD>
444</DL>
445<HR>
446
447<A NAME="write(java.io.Writer, int, int)"><!-- --></A><H3>
448write</H3>
449<PRE>
450public void <B>write</B>(java.io.Writer&nbsp;out,
451                  int&nbsp;offset,
452                  int&nbsp;length)
453           throws java.io.IOException</PRE>
454<DL>
455<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>
456<DD>Write a range of this rope to a <code>Writer</code>.
457<P>
458<DD><DL>
459<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.
460<DT><B>Throws:</B>
461<DD><CODE>java.io.IOException</CODE></DL>
462</DD>
463</DL>
464<!-- ========= END OF CLASS DATA ========= -->
465<HR>
466
467
468<!-- ======= START OF BOTTOM NAVBAR ====== -->
469<A NAME="navbar_bottom"><!-- --></A>
470<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
471<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
472<TR>
473<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
474<A NAME="navbar_bottom_firstrow"><!-- --></A>
475<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
476  <TR ALIGN="center" VALIGN="top">
477  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
478  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
479  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
480  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
481  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
482  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
483  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
484  </TR>
485</TABLE>
486</TD>
487<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
488</EM>
489</TD>
490</TR>
491
492<TR>
493<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
494&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/RopeIterator.html" title="interface in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
495&nbsp;NEXT CLASS</FONT></TD>
496<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
497  <A HREF="/index.html?org/ahmadsoft/ropes/impl/SubstringRope.html" target="_top"><B>FRAMES</B></A>  &nbsp;
498&nbsp;<A HREF="SubstringRope.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
499&nbsp;<SCRIPT type="text/javascript">
500  <!--
501  if(window==top) {
502    document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>');
503  }
504  //-->
505</SCRIPT>
506<NOSCRIPT>
507  <A HREF="/allclasses-noframe.html"><B>All Classes</B></A>
508</NOSCRIPT>
509
510
511</FONT></TD>
512</TR>
513<TR>
514<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
515  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
516<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
517DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
518</TR>
519</TABLE>
520<A NAME="skip-navbar_bottom"></A>
521<!-- ======== END OF BOTTOM NAVBAR ======= -->
522
523<HR>
524<i>Copyright &#169; 2008, 2009 Amin Ahmad. All Rights Reserved.</i>
525</BODY>
526</HTML>
527