• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_35) on Tue Oct 09 17:08:21 PDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<TITLE>
8ObjectBuffer (jackson-databind 2.1.0 API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-10-09">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="ObjectBuffer (jackson-databind 2.1.0 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>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ObjectBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
49  </TR>
50</TABLE>
51</TD>
52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53</EM>
54</TD>
55</TR>
56
57<TR>
58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/util/NameTransformer.Chained.html" title="class in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A>&nbsp;
60&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectIdMap.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD>
61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62  <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/ObjectBuffer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
63&nbsp;<A HREF="ObjectBuffer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
64&nbsp;<SCRIPT type="text/javascript">
65  <!--
66  if(window==top) {
67    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
68  }
69  //-->
70</SCRIPT>
71<NOSCRIPT>
72  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
73</NOSCRIPT>
74
75
76</FONT></TD>
77</TR>
78<TR>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
82DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
83</TR>
84</TABLE>
85<A NAME="skip-navbar_top"></A>
86<!-- ========= END OF TOP NAVBAR ========= -->
87
88<HR>
89<!-- ======== START OF CLASS DATA ======== -->
90<H2>
91<FONT SIZE="-1">
92com.fasterxml.jackson.databind.util</FONT>
93<BR>
94Class ObjectBuffer</H2>
95<PRE>
96<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
97  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.util.ObjectBuffer</B>
98</PRE>
99<HR>
100<DL>
101<DT><PRE>public final class <B>ObjectBuffer</B><DT>extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
102</PRE>
103
104<P>
105Helper class to use for constructing Object arrays by appending entries
106 to create arrays of various lengths (length that is not known a priori).
107<P>
108
109<P>
110<HR>
111
112<P>
113
114<!-- ======== CONSTRUCTOR SUMMARY ======== -->
115
116<A NAME="constructor_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
120<B>Constructor Summary</B></FONT></TH>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#ObjectBuffer()">ObjectBuffer</A></B>()</CODE>
124
125<BR>
126&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
127</TR>
128</TABLE>
129&nbsp;
130<!-- ========== METHOD SUMMARY =========== -->
131
132<A NAME="method_summary"><!-- --></A>
133<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136<B>Method Summary</B></FONT></TH>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>protected &nbsp;void</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#_copyTo(java.lang.Object, int, java.lang.Object[], int)">_copyTo</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;resultArray,
142        int&nbsp;totalSize,
143        <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
144        int&nbsp;lastChunkEntries)</CODE>
145
146<BR>
147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151<CODE>protected &nbsp;void</CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#_reset()">_reset</A></B>()</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
160<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#appendCompletedChunk(java.lang.Object[])">appendCompletedChunk</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;fullChunk)</CODE>
161
162<BR>
163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method called to add a full Object array as a chunk buffered within
164 this buffer, and to obtain a new array to fill.</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;int</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#bufferedSize()">bufferedSize</A></B>()</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method that can be used to check how many Objects have been buffered
173 within this buffer.</TD>
174</TR>
175<TR BGCOLOR="white" CLASS="TableRowColor">
176<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
178<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#completeAndClearBuffer(java.lang.Object[], int)">completeAndClearBuffer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
179                       int&nbsp;lastChunkEntries)</CODE>
180
181<BR>
182&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method called to indicate that the buffering process is now
183 complete; and to construct a combined exactly-sized result
184 array.</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>
189<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
190<TR ALIGN="right" VALIGN="">
191<TD NOWRAP><FONT SIZE="-1">
192<CODE>&lt;T&gt; T[]</CODE></FONT></TD>
193</TR>
194</TABLE>
195</CODE></FONT></TD>
196<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#completeAndClearBuffer(java.lang.Object[], int, java.lang.Class)">completeAndClearBuffer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
197                       int&nbsp;lastChunkEntries,
198                       <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;componentType)</CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Type-safe alternative to
202 <A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#completeAndClearBuffer(java.lang.Object[], int)"><CODE>completeAndClearBuffer(Object[], int)</CODE></A>, to allow
203 for constructing explicitly typed result array.</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207<CODE>&nbsp;void</CODE></FONT></TD>
208<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#completeAndClearBuffer(java.lang.Object[], int, java.util.List)">completeAndClearBuffer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
209                       int&nbsp;lastChunkEntries,
210                       <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&gt;&nbsp;resultList)</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;int</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#initialCapacity()">initialCapacity</A></B>()</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Helper method that can be used to check how much free capacity
222 will this instance start with.</TD>
223</TR>
224<TR BGCOLOR="white" CLASS="TableRowColor">
225<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
227<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#resetAndStart()">resetAndStart</A></B>()</CODE>
228
229<BR>
230&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method called to start buffering process.</TD>
231</TR>
232</TABLE>
233&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
234<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
236<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD><CODE><A HREF="http://docs.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://docs.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://docs.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://docs.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://docs.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://docs.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://docs.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://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://docs.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://docs.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://docs.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>
240</TR>
241</TABLE>
242&nbsp;
243<P>
244
245<!-- ========= CONSTRUCTOR DETAIL ======== -->
246
247<A NAME="constructor_detail"><!-- --></A>
248<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
250<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
251<B>Constructor Detail</B></FONT></TH>
252</TR>
253</TABLE>
254
255<A NAME="ObjectBuffer()"><!-- --></A><H3>
256ObjectBuffer</H3>
257<PRE>
258public <B>ObjectBuffer</B>()</PRE>
259<DL>
260</DL>
261
262<!-- ============ METHOD DETAIL ========== -->
263
264<A NAME="method_detail"><!-- --></A>
265<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
266<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
267<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
268<B>Method Detail</B></FONT></TH>
269</TR>
270</TABLE>
271
272<A NAME="resetAndStart()"><!-- --></A><H3>
273resetAndStart</H3>
274<PRE>
275public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] <B>resetAndStart</B>()</PRE>
276<DL>
277<DD>Method called to start buffering process. Will ensure that the buffer
278 is empty, and then return an object array to start chunking content on
279<P>
280<DD><DL>
281</DL>
282</DD>
283</DL>
284<HR>
285
286<A NAME="appendCompletedChunk(java.lang.Object[])"><!-- --></A><H3>
287appendCompletedChunk</H3>
288<PRE>
289public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] <B>appendCompletedChunk</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;fullChunk)</PRE>
290<DL>
291<DD>Method called to add a full Object array as a chunk buffered within
292 this buffer, and to obtain a new array to fill. Caller is not to use
293 the array it gives; but to use the returned array for continued
294 buffering.
295<P>
296<DD><DL>
297<DT><B>Parameters:</B><DD><CODE>fullChunk</CODE> - Completed chunk that the caller is requesting
298   to append to this buffer. It is generally chunk that was
299   returned by an earlier call to <A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#resetAndStart()"><CODE>resetAndStart()</CODE></A> or
300   <A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#appendCompletedChunk(java.lang.Object[])"><CODE>appendCompletedChunk(java.lang.Object[])</CODE></A> (although this is not required or
301   enforced)
302<DT><B>Returns:</B><DD>New chunk buffer for caller to fill</DL>
303</DD>
304</DL>
305<HR>
306
307<A NAME="completeAndClearBuffer(java.lang.Object[], int)"><!-- --></A><H3>
308completeAndClearBuffer</H3>
309<PRE>
310public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] <B>completeAndClearBuffer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
311                                       int&nbsp;lastChunkEntries)</PRE>
312<DL>
313<DD>Method called to indicate that the buffering process is now
314 complete; and to construct a combined exactly-sized result
315 array. Additionally the buffer itself will be reset to
316 reduce memory retention.
317<p>
318 Resulting array will be of generic <code>Object[]</code> type:
319 if a typed array is needed, use the method with additional
320 type argument.
321<P>
322<DD><DL>
323</DL>
324</DD>
325</DL>
326<HR>
327
328<A NAME="completeAndClearBuffer(java.lang.Object[], int, java.lang.Class)"><!-- --></A><H3>
329completeAndClearBuffer</H3>
330<PRE>
331public &lt;T&gt; T[] <B>completeAndClearBuffer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
332                                      int&nbsp;lastChunkEntries,
333                                      <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;componentType)</PRE>
334<DL>
335<DD>Type-safe alternative to
336 <A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectBuffer.html#completeAndClearBuffer(java.lang.Object[], int)"><CODE>completeAndClearBuffer(Object[], int)</CODE></A>, to allow
337 for constructing explicitly typed result array.
338<P>
339<DD><DL>
340<DT><B>Parameters:</B><DD><CODE>componentType</CODE> - Type of elements included in the buffer. Will be
341   used for constructing the result array.</DL>
342</DD>
343</DL>
344<HR>
345
346<A NAME="completeAndClearBuffer(java.lang.Object[], int, java.util.List)"><!-- --></A><H3>
347completeAndClearBuffer</H3>
348<PRE>
349public void <B>completeAndClearBuffer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
350                                   int&nbsp;lastChunkEntries,
351                                   <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&gt;&nbsp;resultList)</PRE>
352<DL>
353<DD><DL>
354</DL>
355</DD>
356</DL>
357<HR>
358
359<A NAME="initialCapacity()"><!-- --></A><H3>
360initialCapacity</H3>
361<PRE>
362public int <B>initialCapacity</B>()</PRE>
363<DL>
364<DD>Helper method that can be used to check how much free capacity
365 will this instance start with. Can be used to choose the best
366 instance to reuse, based on size of reusable object chunk
367 buffer holds reference to.
368<P>
369<DD><DL>
370</DL>
371</DD>
372</DL>
373<HR>
374
375<A NAME="bufferedSize()"><!-- --></A><H3>
376bufferedSize</H3>
377<PRE>
378public int <B>bufferedSize</B>()</PRE>
379<DL>
380<DD>Method that can be used to check how many Objects have been buffered
381 within this buffer.
382<P>
383<DD><DL>
384</DL>
385</DD>
386</DL>
387<HR>
388
389<A NAME="_reset()"><!-- --></A><H3>
390_reset</H3>
391<PRE>
392protected void <B>_reset</B>()</PRE>
393<DL>
394<DD><DL>
395</DL>
396</DD>
397</DL>
398<HR>
399
400<A NAME="_copyTo(java.lang.Object, int, java.lang.Object[], int)"><!-- --></A><H3>
401_copyTo</H3>
402<PRE>
403protected final void <B>_copyTo</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;resultArray,
404                             int&nbsp;totalSize,
405                             <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;lastChunk,
406                             int&nbsp;lastChunkEntries)</PRE>
407<DL>
408<DD><DL>
409</DL>
410</DD>
411</DL>
412<!-- ========= END OF CLASS DATA ========= -->
413<HR>
414
415
416<!-- ======= START OF BOTTOM NAVBAR ====== -->
417<A NAME="navbar_bottom"><!-- --></A>
418<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
419<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
420<TR>
421<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
422<A NAME="navbar_bottom_firstrow"><!-- --></A>
423<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
424  <TR ALIGN="center" VALIGN="top">
425  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
426  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
427  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
428  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ObjectBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
429  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
430  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
431  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
432  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
433  </TR>
434</TABLE>
435</TD>
436<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
437</EM>
438</TD>
439</TR>
440
441<TR>
442<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
443&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/util/NameTransformer.Chained.html" title="class in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A>&nbsp;
444&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectIdMap.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD>
445<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
446  <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/ObjectBuffer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
447&nbsp;<A HREF="ObjectBuffer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
448&nbsp;<SCRIPT type="text/javascript">
449  <!--
450  if(window==top) {
451    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
452  }
453  //-->
454</SCRIPT>
455<NOSCRIPT>
456  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
457</NOSCRIPT>
458
459
460</FONT></TD>
461</TR>
462<TR>
463<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
464  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
465<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
466DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
467</TR>
468</TABLE>
469<A NAME="skip-navbar_bottom"></A>
470<!-- ======== END OF BOTTOM NAVBAR ======= -->
471
472<HR>
473Copyright &#169; 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.
474</BODY>
475</HTML>
476