PageRenderTime 23ms CodeModel.GetById 2ms app.highlight 17ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/buffer/ContentManager.html

#
HTML | 422 lines | 361 code | 49 blank | 12 comment | 0 complexity | 371939ff34cfd33e4867ca9ec0c40c3c MD5 | raw file
  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.5.0_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6<TITLE>
  7ContentManager (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.buffer.ContentManager class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ContentManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/BufferListener.html" title="interface in org.gjt.sp.jedit.buffer"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/DefaultFoldHandlerProvider.html" title="class in org.gjt.sp.jedit.buffer"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../index.html?org/gjt/sp/jedit/buffer/ContentManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="ContentManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 67DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.jedit.buffer</FONT>
 78<BR>
 79Class ContentManager</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.buffer.ContentManager</B>
 83</PRE>
 84<HR>
 85<DL>
 86<DT><PRE>public class <B>ContentManager</B><DT>extends java.lang.Object</DL>
 87</PRE>
 88
 89<P>
 90A class internal to jEdit's document model. You should not use it
 91 directly. To improve performance, none of the methods in this class
 92 check for out of bounds access, nor are they thread-safe. The
 93 <code>Buffer</code> class, through which these methods must be
 94 called through, implements such protection.
 95<P>
 96
 97<P>
 98<DL>
 99<DT><B>Since:</B></DT>
100  <DD>jEdit 4.0pre1</DD>
101</DL>
102<HR>
103
104<P>
105
106<!-- ======== CONSTRUCTOR SUMMARY ======== -->
107
108<A NAME="constructor_summary"><!-- --></A>
109<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
110<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
111<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
112<B>Constructor Summary</B></FONT></TH>
113</TR>
114<TR BGCOLOR="white" CLASS="TableRowColor">
115<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#ContentManager()">ContentManager</A></B>()</CODE>
116
117<BR>
118&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
119</TR>
120</TABLE>
121&nbsp;
122<!-- ========== METHOD SUMMARY =========== -->
123
124<A NAME="method_summary"><!-- --></A>
125<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
127<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
128<B>Method Summary</B></FONT></TH>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132<CODE>&nbsp;void</CODE></FONT></TD>
133<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#_setContent(char[], int)">_setContent</A></B>(char[]&nbsp;text,
134            int&nbsp;length)</CODE>
135
136<BR>
137&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
138</TR>
139<TR BGCOLOR="white" CLASS="TableRowColor">
140<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141<CODE>&nbsp;int</CODE></FONT></TD>
142<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#getLength()">getLength</A></B>()</CODE>
143
144<BR>
145&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149<CODE>&nbsp;java.lang.CharSequence</CODE></FONT></TD>
150<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#getSegment(int, int)">getSegment</A></B>(int&nbsp;start,
151           int&nbsp;len)</CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a read-only segment of the buffer.</TD>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
158<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
159<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#getText(int, int)">getText</A></B>(int&nbsp;start,
160        int&nbsp;len)</CODE>
161
162<BR>
163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167<CODE>&nbsp;void</CODE></FONT></TD>
168<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#getText(int, int, javax.swing.text.Segment)">getText</A></B>(int&nbsp;start,
169        int&nbsp;len,
170        javax.swing.text.Segment&nbsp;seg)</CODE>
171
172<BR>
173&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
174</TR>
175<TR BGCOLOR="white" CLASS="TableRowColor">
176<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177<CODE>&nbsp;void</CODE></FONT></TD>
178<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#insert(int, java.lang.CharSequence)">insert</A></B>(int&nbsp;start,
179       java.lang.CharSequence&nbsp;str)</CODE>
180
181<BR>
182&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the given data into the buffer.</TD>
183</TR>
184<TR BGCOLOR="white" CLASS="TableRowColor">
185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186<CODE>&nbsp;void</CODE></FONT></TD>
187<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#insert(int, javax.swing.text.Segment)">insert</A></B>(int&nbsp;start,
188       javax.swing.text.Segment&nbsp;seg)</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
192</TR>
193<TR BGCOLOR="white" CLASS="TableRowColor">
194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195<CODE>&nbsp;void</CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#insert(int, java.lang.String)">insert</A></B>(int&nbsp;start,
197       java.lang.String&nbsp;str)</CODE>
198
199<BR>
200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204<CODE>&nbsp;void</CODE></FONT></TD>
205<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/ContentManager.html#remove(int, int)">remove</A></B>(int&nbsp;start,
206       int&nbsp;len)</CODE>
207
208<BR>
209&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
210</TR>
211</TABLE>
212&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
213<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
214<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
215<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
216</TR>
217<TR BGCOLOR="white" CLASS="TableRowColor">
218<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
219</TR>
220</TABLE>
221&nbsp;
222<P>
223
224<!-- ========= CONSTRUCTOR DETAIL ======== -->
225
226<A NAME="constructor_detail"><!-- --></A>
227<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
228<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
229<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
230<B>Constructor Detail</B></FONT></TH>
231</TR>
232</TABLE>
233
234<A NAME="ContentManager()"><!-- --></A><H3>
235ContentManager</H3>
236<PRE>
237public <B>ContentManager</B>()</PRE>
238<DL>
239</DL>
240
241<!-- ============ METHOD DETAIL ========== -->
242
243<A NAME="method_detail"><!-- --></A>
244<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
245<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
246<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
247<B>Method Detail</B></FONT></TH>
248</TR>
249</TABLE>
250
251<A NAME="getLength()"><!-- --></A><H3>
252getLength</H3>
253<PRE>
254public final int <B>getLength</B>()</PRE>
255<DL>
256<DD><DL>
257</DL>
258</DD>
259</DL>
260<HR>
261
262<A NAME="getText(int, int)"><!-- --></A><H3>
263getText</H3>
264<PRE>
265public java.lang.String <B>getText</B>(int&nbsp;start,
266                                int&nbsp;len)</PRE>
267<DL>
268<DD><DL>
269</DL>
270</DD>
271</DL>
272<HR>
273
274<A NAME="getText(int, int, javax.swing.text.Segment)"><!-- --></A><H3>
275getText</H3>
276<PRE>
277public void <B>getText</B>(int&nbsp;start,
278                    int&nbsp;len,
279                    javax.swing.text.Segment&nbsp;seg)</PRE>
280<DL>
281<DD><DL>
282</DL>
283</DD>
284</DL>
285<HR>
286
287<A NAME="getSegment(int, int)"><!-- --></A><H3>
288getSegment</H3>
289<PRE>
290public java.lang.CharSequence <B>getSegment</B>(int&nbsp;start,
291                                         int&nbsp;len)</PRE>
292<DL>
293<DD>Returns a read-only segment of the buffer.
294<P>
295<DD><DL>
296<DT><B>Since:</B></DT>
297  <DD>jEdit 4.3pre15</DD>
298</DL>
299</DD>
300</DL>
301<HR>
302
303<A NAME="insert(int, java.lang.String)"><!-- --></A><H3>
304insert</H3>
305<PRE>
306public void <B>insert</B>(int&nbsp;start,
307                   java.lang.String&nbsp;str)</PRE>
308<DL>
309<DD><DL>
310</DL>
311</DD>
312</DL>
313<HR>
314
315<A NAME="insert(int, java.lang.CharSequence)"><!-- --></A><H3>
316insert</H3>
317<PRE>
318public void <B>insert</B>(int&nbsp;start,
319                   java.lang.CharSequence&nbsp;str)</PRE>
320<DL>
321<DD>Inserts the given data into the buffer.
322<P>
323<DD><DL>
324<DT><B>Since:</B></DT>
325  <DD>jEdit 4.3pre15</DD>
326</DL>
327</DD>
328</DL>
329<HR>
330
331<A NAME="insert(int, javax.swing.text.Segment)"><!-- --></A><H3>
332insert</H3>
333<PRE>
334public void <B>insert</B>(int&nbsp;start,
335                   javax.swing.text.Segment&nbsp;seg)</PRE>
336<DL>
337<DD><DL>
338</DL>
339</DD>
340</DL>
341<HR>
342
343<A NAME="_setContent(char[], int)"><!-- --></A><H3>
344_setContent</H3>
345<PRE>
346public void <B>_setContent</B>(char[]&nbsp;text,
347                        int&nbsp;length)</PRE>
348<DL>
349<DD><DL>
350</DL>
351</DD>
352</DL>
353<HR>
354
355<A NAME="remove(int, int)"><!-- --></A><H3>
356remove</H3>
357<PRE>
358public void <B>remove</B>(int&nbsp;start,
359                   int&nbsp;len)</PRE>
360<DL>
361<DD><DL>
362</DL>
363</DD>
364</DL>
365<!-- ========= END OF CLASS DATA ========= -->
366<HR>
367
368
369<!-- ======= START OF BOTTOM NAVBAR ====== -->
370<A NAME="navbar_bottom"><!-- --></A>
371<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
372<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
373<TR>
374<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
375<A NAME="navbar_bottom_firstrow"><!-- --></A>
376<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
377  <TR ALIGN="center" VALIGN="top">
378  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
379  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
380  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
381  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ContentManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
382  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
383  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
384  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
385  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
386  </TR>
387</TABLE>
388</TD>
389<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
390</EM>
391</TD>
392</TR>
393
394<TR>
395<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
396&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/BufferListener.html" title="interface in org.gjt.sp.jedit.buffer"><B>PREV CLASS</B></A>&nbsp;
397&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/DefaultFoldHandlerProvider.html" title="class in org.gjt.sp.jedit.buffer"><B>NEXT CLASS</B></A></FONT></TD>
398<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
399  <A HREF="../../../../../index.html?org/gjt/sp/jedit/buffer/ContentManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
400&nbsp;<A HREF="ContentManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
401&nbsp;
402<NOSCRIPT>
403  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
404</NOSCRIPT>
405
406
407</FONT></TD>
408</TR>
409<TR>
410<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
411  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
412<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
413DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
414</TR>
415</TABLE>
416<A NAME="skip-navbar_bottom"></A>
417<!-- ======== END OF BOTTOM NAVBAR ======= -->
418
419<HR>
420
421</BODY>
422</HTML>