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_24) on Mon Jun 25 15:26:24 EDT 2012 --> |
---|
6 | <META http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
7 | <TITLE> |
---|
8 | CharBuffer (Solr 4.0.0-ALPHA API) |
---|
9 | </TITLE> |
---|
10 | |
---|
11 | <META NAME="date" CONTENT="2012-06-25"> |
---|
12 | |
---|
13 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
---|
14 | |
---|
15 | <SCRIPT type="text/javascript"> |
---|
16 | function windowTitle() |
---|
17 | { |
---|
18 | if (location.href.indexOf('is-external=true') == -1) { |
---|
19 | parent.document.title="CharBuffer (Solr 4.0.0-ALPHA API)"; |
---|
20 | } |
---|
21 | } |
---|
22 | </SCRIPT> |
---|
23 | <NOSCRIPT> |
---|
24 | </NOSCRIPT> |
---|
25 | |
---|
26 | </HEAD> |
---|
27 | |
---|
28 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
29 | <HR> |
---|
30 | |
---|
31 | |
---|
32 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
33 | <A NAME="navbar_top"><!-- --></A> |
---|
34 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
35 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
36 | <TR> |
---|
37 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
38 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
39 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
40 | <TR ALIGN="center" VALIGN="top"> |
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
43 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
48 | </TR> |
---|
49 | </TABLE> |
---|
50 | </TD> |
---|
51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
52 | </EM> |
---|
53 | </TD> |
---|
54 | </TR> |
---|
55 | |
---|
56 | <TR> |
---|
57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
58 | PREV CLASS |
---|
59 | <A HREF="../../../../../org/apache/solr/internal/csv/CSVParser.html" title="class in org.apache.solr.internal.csv"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../../index.html?org/apache/solr/internal/csv/CharBuffer.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="CharBuffer.html" target="_top"><B>NO FRAMES</B></A> |
---|
63 | <SCRIPT type="text/javascript"> |
---|
64 | <!-- |
---|
65 | if(window==top) { |
---|
66 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
67 | } |
---|
68 | //--> |
---|
69 | </SCRIPT> |
---|
70 | <NOSCRIPT> |
---|
71 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
72 | </NOSCRIPT> |
---|
73 | |
---|
74 | |
---|
75 | </FONT></TD> |
---|
76 | </TR> |
---|
77 | <TR> |
---|
78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
79 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
82 | </TR> |
---|
83 | </TABLE> |
---|
84 | <A NAME="skip-navbar_top"></A> |
---|
85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
86 | |
---|
87 | <HR> |
---|
88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
89 | <H2> |
---|
90 | <FONT SIZE="-1"> |
---|
91 | org.apache.solr.internal.csv</FONT> |
---|
92 | <BR> |
---|
93 | Class CharBuffer</H2> |
---|
94 | <PRE> |
---|
95 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
96 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.internal.csv.CharBuffer</B> |
---|
97 | </PRE> |
---|
98 | <HR> |
---|
99 | <DL> |
---|
100 | <DT><PRE>public class <B>CharBuffer</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
101 | </PRE> |
---|
102 | |
---|
103 | <P> |
---|
104 | A simple StringBuffer replacement that aims to |
---|
105 | reduce copying as much as possible. The buffer |
---|
106 | grows as necessary. |
---|
107 | This class is not thread safe. |
---|
108 | <P> |
---|
109 | |
---|
110 | <P> |
---|
111 | <HR> |
---|
112 | |
---|
113 | <P> |
---|
114 | |
---|
115 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
116 | |
---|
117 | <A NAME="constructor_summary"><!-- --></A> |
---|
118 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
119 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
120 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
121 | <B>Constructor Summary</B></FONT></TH> |
---|
122 | </TR> |
---|
123 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
124 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#CharBuffer()">CharBuffer</A></B>()</CODE> |
---|
125 | |
---|
126 | <BR> |
---|
127 | Creates a new CharBuffer with an initial capacity of 32 characters.</TD> |
---|
128 | </TR> |
---|
129 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
130 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#CharBuffer(int)">CharBuffer</A></B>(int length)</CODE> |
---|
131 | |
---|
132 | <BR> |
---|
133 | Creates a new CharBuffer with an initial capacity |
---|
134 | of <code>length</code> characters.</TD> |
---|
135 | </TR> |
---|
136 | </TABLE> |
---|
137 | |
---|
138 | <!-- ========== METHOD SUMMARY =========== --> |
---|
139 | |
---|
140 | <A NAME="method_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>Method Summary</B></FONT></TH> |
---|
145 | </TR> |
---|
146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
147 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
148 | <CODE> void</CODE></FONT></TD> |
---|
149 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#append(char)">append</A></B>(char data)</CODE> |
---|
150 | |
---|
151 | <BR> |
---|
152 | Appends a single character to the end of this CharBuffer.</TD> |
---|
153 | </TR> |
---|
154 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
155 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
156 | <CODE> void</CODE></FONT></TD> |
---|
157 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#append(char[])">append</A></B>(char[] data)</CODE> |
---|
158 | |
---|
159 | <BR> |
---|
160 | Appends <code>data</code> to the end of this CharBuffer.</TD> |
---|
161 | </TR> |
---|
162 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
163 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
164 | <CODE> void</CODE></FONT></TD> |
---|
165 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#append(org.apache.solr.internal.csv.CharBuffer)">append</A></B>(<A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html" title="class in org.apache.solr.internal.csv">CharBuffer</A> cb)</CODE> |
---|
166 | |
---|
167 | <BR> |
---|
168 | Appends the contents of <code>cb</code> to the end of this CharBuffer.</TD> |
---|
169 | </TR> |
---|
170 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
171 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
172 | <CODE> void</CODE></FONT></TD> |
---|
173 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#append(java.lang.String)">append</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</CODE> |
---|
174 | |
---|
175 | <BR> |
---|
176 | Appends <code>s</code> to the end of this CharBuffer.</TD> |
---|
177 | </TR> |
---|
178 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
179 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
180 | <CODE> void</CODE></FONT></TD> |
---|
181 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#append(java.lang.StringBuffer)">append</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> sb)</CODE> |
---|
182 | |
---|
183 | <BR> |
---|
184 | Appends <code>sb</code> to the end of this CharBuffer.</TD> |
---|
185 | </TR> |
---|
186 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
187 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
188 | <CODE> int</CODE></FONT></TD> |
---|
189 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#capacity()">capacity</A></B>()</CODE> |
---|
190 | |
---|
191 | <BR> |
---|
192 | Returns the current capacity of the buffer.</TD> |
---|
193 | </TR> |
---|
194 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
196 | <CODE> char</CODE></FONT></TD> |
---|
197 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#charAt(int)">charAt</A></B>(int pos)</CODE> |
---|
198 | |
---|
199 | <BR> |
---|
200 | Returns the character at the specified position.</TD> |
---|
201 | </TR> |
---|
202 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
203 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
204 | <CODE> void</CODE></FONT></TD> |
---|
205 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#clear()">clear</A></B>()</CODE> |
---|
206 | |
---|
207 | <BR> |
---|
208 | Empties the buffer.</TD> |
---|
209 | </TR> |
---|
210 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
211 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
212 | <CODE> char[]</CODE></FONT></TD> |
---|
213 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#getCharacters()">getCharacters</A></B>()</CODE> |
---|
214 | |
---|
215 | <BR> |
---|
216 | Returns the contents of the buffer as a char[].</TD> |
---|
217 | </TR> |
---|
218 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
219 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
220 | <CODE> int</CODE></FONT></TD> |
---|
221 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#length()">length</A></B>()</CODE> |
---|
222 | |
---|
223 | <BR> |
---|
224 | Returns the number of characters in the buffer.</TD> |
---|
225 | </TR> |
---|
226 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
227 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
228 | <CODE> void</CODE></FONT></TD> |
---|
229 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#provideCapacity(int)">provideCapacity</A></B>(int capacity)</CODE> |
---|
230 | |
---|
231 | <BR> |
---|
232 | Copies the data into a new array of at least <code>capacity</code> size.</TD> |
---|
233 | </TR> |
---|
234 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
235 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
236 | <CODE> void</CODE></FONT></TD> |
---|
237 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#shrink()">shrink</A></B>()</CODE> |
---|
238 | |
---|
239 | <BR> |
---|
240 | Shrinks the capacity of the buffer to the current length if necessary.</TD> |
---|
241 | </TR> |
---|
242 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
243 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
244 | <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
245 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#toString()">toString</A></B>()</CODE> |
---|
246 | |
---|
247 | <BR> |
---|
248 | Converts the contents of the buffer into a StringBuffer.</TD> |
---|
249 | </TR> |
---|
250 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
251 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
252 | <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A></CODE></FONT></TD> |
---|
253 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#toStringBuffer()">toStringBuffer</A></B>()</CODE> |
---|
254 | |
---|
255 | <BR> |
---|
256 | Converts the contents of the buffer into a StringBuffer.</TD> |
---|
257 | </TR> |
---|
258 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
259 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
260 | <CODE> void</CODE></FONT></TD> |
---|
261 | <TD><CODE><B><A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html#trimTrailingWhitespace()">trimTrailingWhitespace</A></B>()</CODE> |
---|
262 | |
---|
263 | <BR> |
---|
264 | Removes trailing whitespace.</TD> |
---|
265 | </TR> |
---|
266 | </TABLE> |
---|
267 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
268 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
269 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
270 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
271 | </TR> |
---|
272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
273 | <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
274 | </TR> |
---|
275 | </TABLE> |
---|
276 | |
---|
277 | <P> |
---|
278 | |
---|
279 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
280 | |
---|
281 | <A NAME="constructor_detail"><!-- --></A> |
---|
282 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
283 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
284 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
285 | <B>Constructor Detail</B></FONT></TH> |
---|
286 | </TR> |
---|
287 | </TABLE> |
---|
288 | |
---|
289 | <A NAME="CharBuffer()"><!-- --></A><H3> |
---|
290 | CharBuffer</H3> |
---|
291 | <PRE> |
---|
292 | public <B>CharBuffer</B>()</PRE> |
---|
293 | <DL> |
---|
294 | <DD>Creates a new CharBuffer with an initial capacity of 32 characters. |
---|
295 | <P> |
---|
296 | </DL> |
---|
297 | <HR> |
---|
298 | |
---|
299 | <A NAME="CharBuffer(int)"><!-- --></A><H3> |
---|
300 | CharBuffer</H3> |
---|
301 | <PRE> |
---|
302 | public <B>CharBuffer</B>(int length)</PRE> |
---|
303 | <DL> |
---|
304 | <DD>Creates a new CharBuffer with an initial capacity |
---|
305 | of <code>length</code> characters. |
---|
306 | <P> |
---|
307 | </DL> |
---|
308 | |
---|
309 | <!-- ============ METHOD DETAIL ========== --> |
---|
310 | |
---|
311 | <A NAME="method_detail"><!-- --></A> |
---|
312 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
313 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
314 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
315 | <B>Method Detail</B></FONT></TH> |
---|
316 | </TR> |
---|
317 | </TABLE> |
---|
318 | |
---|
319 | <A NAME="clear()"><!-- --></A><H3> |
---|
320 | clear</H3> |
---|
321 | <PRE> |
---|
322 | public void <B>clear</B>()</PRE> |
---|
323 | <DL> |
---|
324 | <DD>Empties the buffer. The capacity still remains the same, so no memory is freed. |
---|
325 | <P> |
---|
326 | <DD><DL> |
---|
327 | </DL> |
---|
328 | </DD> |
---|
329 | </DL> |
---|
330 | <HR> |
---|
331 | |
---|
332 | <A NAME="length()"><!-- --></A><H3> |
---|
333 | length</H3> |
---|
334 | <PRE> |
---|
335 | public int <B>length</B>()</PRE> |
---|
336 | <DL> |
---|
337 | <DD>Returns the number of characters in the buffer. |
---|
338 | <P> |
---|
339 | <DD><DL> |
---|
340 | |
---|
341 | <DT><B>Returns:</B><DD>the number of characters</DL> |
---|
342 | </DD> |
---|
343 | </DL> |
---|
344 | <HR> |
---|
345 | |
---|
346 | <A NAME="capacity()"><!-- --></A><H3> |
---|
347 | capacity</H3> |
---|
348 | <PRE> |
---|
349 | public int <B>capacity</B>()</PRE> |
---|
350 | <DL> |
---|
351 | <DD>Returns the current capacity of the buffer. |
---|
352 | <P> |
---|
353 | <DD><DL> |
---|
354 | |
---|
355 | <DT><B>Returns:</B><DD>the maximum number of characters that can be stored in this buffer without |
---|
356 | resizing it.</DL> |
---|
357 | </DD> |
---|
358 | </DL> |
---|
359 | <HR> |
---|
360 | |
---|
361 | <A NAME="append(org.apache.solr.internal.csv.CharBuffer)"><!-- --></A><H3> |
---|
362 | append</H3> |
---|
363 | <PRE> |
---|
364 | public void <B>append</B>(<A HREF="../../../../../org/apache/solr/internal/csv/CharBuffer.html" title="class in org.apache.solr.internal.csv">CharBuffer</A> cb)</PRE> |
---|
365 | <DL> |
---|
366 | <DD>Appends the contents of <code>cb</code> to the end of this CharBuffer. |
---|
367 | <P> |
---|
368 | <DD><DL> |
---|
369 | <DT><B>Parameters:</B><DD><CODE>cb</CODE> - the CharBuffer to append or null</DL> |
---|
370 | </DD> |
---|
371 | </DL> |
---|
372 | <HR> |
---|
373 | |
---|
374 | <A NAME="append(java.lang.String)"><!-- --></A><H3> |
---|
375 | append</H3> |
---|
376 | <PRE> |
---|
377 | public void <B>append</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</PRE> |
---|
378 | <DL> |
---|
379 | <DD>Appends <code>s</code> to the end of this CharBuffer. |
---|
380 | This method involves copying the new data once! |
---|
381 | <P> |
---|
382 | <DD><DL> |
---|
383 | <DT><B>Parameters:</B><DD><CODE>s</CODE> - the String to append or null</DL> |
---|
384 | </DD> |
---|
385 | </DL> |
---|
386 | <HR> |
---|
387 | |
---|
388 | <A NAME="append(java.lang.StringBuffer)"><!-- --></A><H3> |
---|
389 | append</H3> |
---|
390 | <PRE> |
---|
391 | public void <B>append</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> sb)</PRE> |
---|
392 | <DL> |
---|
393 | <DD>Appends <code>sb</code> to the end of this CharBuffer. |
---|
394 | This method involves copying the new data once! |
---|
395 | <P> |
---|
396 | <DD><DL> |
---|
397 | <DT><B>Parameters:</B><DD><CODE>sb</CODE> - the StringBuffer to append or null</DL> |
---|
398 | </DD> |
---|
399 | </DL> |
---|
400 | <HR> |
---|
401 | |
---|
402 | <A NAME="append(char[])"><!-- --></A><H3> |
---|
403 | append</H3> |
---|
404 | <PRE> |
---|
405 | public void <B>append</B>(char[] data)</PRE> |
---|
406 | <DL> |
---|
407 | <DD>Appends <code>data</code> to the end of this CharBuffer. |
---|
408 | This method involves copying the new data once! |
---|
409 | <P> |
---|
410 | <DD><DL> |
---|
411 | <DT><B>Parameters:</B><DD><CODE>data</CODE> - the char[] to append or null</DL> |
---|
412 | </DD> |
---|
413 | </DL> |
---|
414 | <HR> |
---|
415 | |
---|
416 | <A NAME="append(char)"><!-- --></A><H3> |
---|
417 | append</H3> |
---|
418 | <PRE> |
---|
419 | public void <B>append</B>(char data)</PRE> |
---|
420 | <DL> |
---|
421 | <DD>Appends a single character to the end of this CharBuffer. |
---|
422 | This method involves copying the new data once! |
---|
423 | <P> |
---|
424 | <DD><DL> |
---|
425 | <DT><B>Parameters:</B><DD><CODE>data</CODE> - the char to append</DL> |
---|
426 | </DD> |
---|
427 | </DL> |
---|
428 | <HR> |
---|
429 | |
---|
430 | <A NAME="shrink()"><!-- --></A><H3> |
---|
431 | shrink</H3> |
---|
432 | <PRE> |
---|
433 | public void <B>shrink</B>()</PRE> |
---|
434 | <DL> |
---|
435 | <DD>Shrinks the capacity of the buffer to the current length if necessary. |
---|
436 | This method involves copying the data once! |
---|
437 | <P> |
---|
438 | <DD><DL> |
---|
439 | </DL> |
---|
440 | </DD> |
---|
441 | </DL> |
---|
442 | <HR> |
---|
443 | |
---|
444 | <A NAME="trimTrailingWhitespace()"><!-- --></A><H3> |
---|
445 | trimTrailingWhitespace</H3> |
---|
446 | <PRE> |
---|
447 | public void <B>trimTrailingWhitespace</B>()</PRE> |
---|
448 | <DL> |
---|
449 | <DD>Removes trailing whitespace. |
---|
450 | <P> |
---|
451 | <DD><DL> |
---|
452 | </DL> |
---|
453 | </DD> |
---|
454 | </DL> |
---|
455 | <HR> |
---|
456 | |
---|
457 | <A NAME="getCharacters()"><!-- --></A><H3> |
---|
458 | getCharacters</H3> |
---|
459 | <PRE> |
---|
460 | public char[] <B>getCharacters</B>()</PRE> |
---|
461 | <DL> |
---|
462 | <DD>Returns the contents of the buffer as a char[]. The returned array may |
---|
463 | be the internal array of the buffer, so the caller must take care when |
---|
464 | modifying it. |
---|
465 | This method allows to avoid copying if the caller knows the exact capacity |
---|
466 | before. |
---|
467 | <P> |
---|
468 | <DD><DL> |
---|
469 | </DL> |
---|
470 | </DD> |
---|
471 | </DL> |
---|
472 | <HR> |
---|
473 | |
---|
474 | <A NAME="charAt(int)"><!-- --></A><H3> |
---|
475 | charAt</H3> |
---|
476 | <PRE> |
---|
477 | public char <B>charAt</B>(int pos)</PRE> |
---|
478 | <DL> |
---|
479 | <DD>Returns the character at the specified position. |
---|
480 | <P> |
---|
481 | <DD><DL> |
---|
482 | </DL> |
---|
483 | </DD> |
---|
484 | </DL> |
---|
485 | <HR> |
---|
486 | |
---|
487 | <A NAME="toStringBuffer()"><!-- --></A><H3> |
---|
488 | toStringBuffer</H3> |
---|
489 | <PRE> |
---|
490 | public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> <B>toStringBuffer</B>()</PRE> |
---|
491 | <DL> |
---|
492 | <DD>Converts the contents of the buffer into a StringBuffer. |
---|
493 | This method involves copying the new data once! |
---|
494 | <P> |
---|
495 | <DD><DL> |
---|
496 | </DL> |
---|
497 | </DD> |
---|
498 | </DL> |
---|
499 | <HR> |
---|
500 | |
---|
501 | <A NAME="toString()"><!-- --></A><H3> |
---|
502 | toString</H3> |
---|
503 | <PRE> |
---|
504 | public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> |
---|
505 | <DL> |
---|
506 | <DD>Converts the contents of the buffer into a StringBuffer. |
---|
507 | This method involves copying the new data once! |
---|
508 | <P> |
---|
509 | <DD><DL> |
---|
510 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
511 | </DD> |
---|
512 | <DD><DL> |
---|
513 | </DL> |
---|
514 | </DD> |
---|
515 | </DL> |
---|
516 | <HR> |
---|
517 | |
---|
518 | <A NAME="provideCapacity(int)"><!-- --></A><H3> |
---|
519 | provideCapacity</H3> |
---|
520 | <PRE> |
---|
521 | public void <B>provideCapacity</B>(int capacity)</PRE> |
---|
522 | <DL> |
---|
523 | <DD>Copies the data into a new array of at least <code>capacity</code> size. |
---|
524 | <P> |
---|
525 | <DD><DL> |
---|
526 | <DT><B>Parameters:</B><DD><CODE>capacity</CODE> - </DL> |
---|
527 | </DD> |
---|
528 | </DL> |
---|
529 | <!-- ========= END OF CLASS DATA ========= --> |
---|
530 | <HR> |
---|
531 | |
---|
532 | |
---|
533 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
534 | <A NAME="navbar_bottom"><!-- --></A> |
---|
535 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
536 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
537 | <TR> |
---|
538 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
539 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
540 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
541 | <TR ALIGN="center" VALIGN="top"> |
---|
542 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
543 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
544 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
545 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
546 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
547 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
548 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
549 | </TR> |
---|
550 | </TABLE> |
---|
551 | </TD> |
---|
552 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
553 | </EM> |
---|
554 | </TD> |
---|
555 | </TR> |
---|
556 | |
---|
557 | <TR> |
---|
558 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
559 | PREV CLASS |
---|
560 | <A HREF="../../../../../org/apache/solr/internal/csv/CSVParser.html" title="class in org.apache.solr.internal.csv"><B>NEXT CLASS</B></A></FONT></TD> |
---|
561 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
562 | <A HREF="../../../../../index.html?org/apache/solr/internal/csv/CharBuffer.html" target="_top"><B>FRAMES</B></A> |
---|
563 | <A HREF="CharBuffer.html" target="_top"><B>NO FRAMES</B></A> |
---|
564 | <SCRIPT type="text/javascript"> |
---|
565 | <!-- |
---|
566 | if(window==top) { |
---|
567 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
568 | } |
---|
569 | //--> |
---|
570 | </SCRIPT> |
---|
571 | <NOSCRIPT> |
---|
572 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
573 | </NOSCRIPT> |
---|
574 | |
---|
575 | |
---|
576 | </FONT></TD> |
---|
577 | </TR> |
---|
578 | <TR> |
---|
579 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
580 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
581 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
582 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
583 | </TR> |
---|
584 | </TABLE> |
---|
585 | <A NAME="skip-navbar_bottom"></A> |
---|
586 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
587 | |
---|
588 | <HR> |
---|
589 | |
---|
590 | <address>Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.</address> |
---|
591 | <script src='../../../../../prettify.js' type='text/javascript'></script> |
---|
592 | <script type='text/javascript'> |
---|
593 | (function(){ |
---|
594 | var oldonload = window.onload; |
---|
595 | if (typeof oldonload != 'function') { |
---|
596 | window.onload = prettyPrint; |
---|
597 | } else { |
---|
598 | window.onload = function() { |
---|
599 | oldonload(); |
---|
600 | prettyPrint(); |
---|
601 | } |
---|
602 | } |
---|
603 | })(); |
---|
604 | </script> |
---|
605 | |
---|
606 | </BODY> |
---|
607 | </HTML> |
---|