PageRenderTime 51ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/util/SegmentBuffer.html

#
HTML | 299 lines | 251 code | 35 blank | 13 comment | 0 complexity | 6517ade3a53f5b62ba417ea5990f4d4f MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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:14:16 GMT-08:00 2008 -->
  6. <TITLE>
  7. SegmentBuffer (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.util.SegmentBuffer class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SegmentBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../org/gjt/sp/util/ReverseCharSequence.html" title="class in org.gjt.sp.util"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html" title="class in org.gjt.sp.util"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../index.html?org/gjt/sp/util/SegmentBuffer.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="SegmentBuffer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.Segment">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.util</FONT>
  66. <BR>
  67. Class SegmentBuffer</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">javax.swing.text.Segment
  71. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.util.SegmentBuffer</B>
  72. </PRE>
  73. <DL>
  74. <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.text.CharacterIterator</DD>
  75. </DL>
  76. <HR>
  77. <DL>
  78. <DT><PRE>public class <B>SegmentBuffer</B><DT>extends javax.swing.text.Segment</DL>
  79. </PRE>
  80. <P>
  81. An extended segment that you can append text to.
  82. <P>
  83. <P>
  84. <HR>
  85. <P>
  86. <!-- =========== FIELD SUMMARY =========== -->
  87. <A NAME="field_summary"><!-- --></A>
  88. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  89. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  90. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  91. <B>Field Summary</B></FONT></TH>
  92. </TR>
  93. </TABLE>
  94. &nbsp;<A NAME="fields_inherited_from_class_javax.swing.text.Segment"><!-- --></A>
  95. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  96. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  97. <TH ALIGN="left"><B>Fields inherited from class javax.swing.text.Segment</B></TH>
  98. </TR>
  99. <TR BGCOLOR="white" CLASS="TableRowColor">
  100. <TD><CODE>array, count, offset</CODE></TD>
  101. </TR>
  102. </TABLE>
  103. &nbsp;<A NAME="fields_inherited_from_class_java.text.CharacterIterator"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  106. <TH ALIGN="left"><B>Fields inherited from interface java.text.CharacterIterator</B></TH>
  107. </TR>
  108. <TR BGCOLOR="white" CLASS="TableRowColor">
  109. <TD><CODE>DONE</CODE></TD>
  110. </TR>
  111. </TABLE>
  112. &nbsp;
  113. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  114. <A NAME="constructor_summary"><!-- --></A>
  115. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  116. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  117. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  118. <B>Constructor Summary</B></FONT></TH>
  119. </TR>
  120. <TR BGCOLOR="white" CLASS="TableRowColor">
  121. <TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentBuffer.html#SegmentBuffer(int)">SegmentBuffer</A></B>(int&nbsp;capacity)</CODE>
  122. <BR>
  123. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  124. </TR>
  125. </TABLE>
  126. &nbsp;
  127. <!-- ========== METHOD SUMMARY =========== -->
  128. <A NAME="method_summary"><!-- --></A>
  129. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  130. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  131. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  132. <B>Method Summary</B></FONT></TH>
  133. </TR>
  134. <TR BGCOLOR="white" CLASS="TableRowColor">
  135. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  136. <CODE>&nbsp;void</CODE></FONT></TD>
  137. <TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentBuffer.html#append(char)">append</A></B>(char&nbsp;ch)</CODE>
  138. <BR>
  139. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  140. </TR>
  141. <TR BGCOLOR="white" CLASS="TableRowColor">
  142. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  143. <CODE>&nbsp;void</CODE></FONT></TD>
  144. <TD><CODE><B><A HREF="../../../../org/gjt/sp/util/SegmentBuffer.html#append(char[], int, int)">append</A></B>(char[]&nbsp;text,
  145. int&nbsp;off,
  146. int&nbsp;len)</CODE>
  147. <BR>
  148. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  149. </TR>
  150. </TABLE>
  151. &nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.Segment"><!-- --></A>
  152. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  153. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  154. <TH ALIGN="left"><B>Methods inherited from class javax.swing.text.Segment</B></TH>
  155. </TR>
  156. <TR BGCOLOR="white" CLASS="TableRowColor">
  157. <TD><CODE>clone, current, first, getBeginIndex, getEndIndex, getIndex, isPartialReturn, last, next, previous, setIndex, setPartialReturn, toString</CODE></TD>
  158. </TR>
  159. </TABLE>
  160. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  161. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  162. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  163. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  164. </TR>
  165. <TR BGCOLOR="white" CLASS="TableRowColor">
  166. <TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  167. </TR>
  168. </TABLE>
  169. &nbsp;
  170. <P>
  171. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  172. <A NAME="constructor_detail"><!-- --></A>
  173. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  174. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  175. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  176. <B>Constructor Detail</B></FONT></TH>
  177. </TR>
  178. </TABLE>
  179. <A NAME="SegmentBuffer(int)"><!-- --></A><H3>
  180. SegmentBuffer</H3>
  181. <PRE>
  182. public <B>SegmentBuffer</B>(int&nbsp;capacity)</PRE>
  183. <DL>
  184. </DL>
  185. <!-- ============ METHOD DETAIL ========== -->
  186. <A NAME="method_detail"><!-- --></A>
  187. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  188. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  189. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  190. <B>Method Detail</B></FONT></TH>
  191. </TR>
  192. </TABLE>
  193. <A NAME="append(char)"><!-- --></A><H3>
  194. append</H3>
  195. <PRE>
  196. public void <B>append</B>(char&nbsp;ch)</PRE>
  197. <DL>
  198. <DD><DL>
  199. </DL>
  200. </DD>
  201. </DL>
  202. <HR>
  203. <A NAME="append(char[], int, int)"><!-- --></A><H3>
  204. append</H3>
  205. <PRE>
  206. public void <B>append</B>(char[]&nbsp;text,
  207. int&nbsp;off,
  208. int&nbsp;len)</PRE>
  209. <DL>
  210. <DD><DL>
  211. </DL>
  212. </DD>
  213. </DL>
  214. <!-- ========= END OF CLASS DATA ========= -->
  215. <HR>
  216. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  217. <A NAME="navbar_bottom"><!-- --></A>
  218. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  219. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  220. <TR>
  221. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  222. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  223. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  224. <TR ALIGN="center" VALIGN="top">
  225. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  226. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  227. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  228. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SegmentBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  229. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  230. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  231. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  232. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  233. </TR>
  234. </TABLE>
  235. </TD>
  236. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  237. </EM>
  238. </TD>
  239. </TR>
  240. <TR>
  241. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  242. &nbsp;<A HREF="../../../../org/gjt/sp/util/ReverseCharSequence.html" title="class in org.gjt.sp.util"><B>PREV CLASS</B></A>&nbsp;
  243. &nbsp;<A HREF="../../../../org/gjt/sp/util/SegmentCharSequence.html" title="class in org.gjt.sp.util"><B>NEXT CLASS</B></A></FONT></TD>
  244. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  245. <A HREF="../../../../index.html?org/gjt/sp/util/SegmentBuffer.html" target="_top"><B>FRAMES</B></A> &nbsp;
  246. &nbsp;<A HREF="SegmentBuffer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  247. &nbsp;
  248. <NOSCRIPT>
  249. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  250. </NOSCRIPT>
  251. </FONT></TD>
  252. </TR>
  253. <TR>
  254. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  255. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.Segment">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  256. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  257. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  258. </TR>
  259. </TABLE>
  260. <A NAME="skip-navbar_bottom"></A>
  261. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  262. <HR>
  263. </BODY>
  264. </HTML>