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_29) on Mon Mar 26 19:07:19 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8PrimitiveArrayBuilder (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 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="PrimitiveArrayBuilder (jackson-databind 2.0.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> </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/PrimitiveArrayBuilder.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="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 <A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectIdMap.html" title="class in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Provider.html" title="interface 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/PrimitiveArrayBuilder.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="PrimitiveArrayBuilder.html" target="_top"><B>NO FRAMES</B></A> 64 <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 PrimitiveArrayBuilder<T></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.PrimitiveArrayBuilder<T></B> 98</PRE> 99<DL> 100<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</A></DD> 101</DL> 102<HR> 103<DL> 104<DT><PRE>public abstract class <B>PrimitiveArrayBuilder<T></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> 105</PRE> 106 107<P> 108Base class for specialized primitive array builders. 109<P> 110 111<P> 112<HR> 113 114<P> 115 116<!-- ======== CONSTRUCTOR SUMMARY ======== --> 117 118<A NAME="constructor_summary"><!-- --></A> 119<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 120<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 121<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 122<B>Constructor Summary</B></FONT></TH> 123</TR> 124<TR BGCOLOR="white" CLASS="TableRowColor"> 125<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 126<CODE>protected </CODE></FONT></TD> 127<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html#PrimitiveArrayBuilder()">PrimitiveArrayBuilder</A></B>()</CODE> 128 129<BR> 130 </TD> 131</TR> 132</TABLE> 133 134<!-- ========== METHOD SUMMARY =========== --> 135 136<A NAME="method_summary"><!-- --></A> 137<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 138<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 139<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 140<B>Method Summary</B></FONT></TH> 141</TR> 142<TR BGCOLOR="white" CLASS="TableRowColor"> 143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 144<CODE>protected abstract <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A></CODE></FONT></TD> 145<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html#_constructArray(int)">_constructArray</A></B>(int len)</CODE> 146 147<BR> 148 </TD> 149</TR> 150<TR BGCOLOR="white" CLASS="TableRowColor"> 151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 152<CODE>protected void</CODE></FONT></TD> 153<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html#_reset()">_reset</A></B>()</CODE> 154 155<BR> 156 </TD> 157</TR> 158<TR BGCOLOR="white" CLASS="TableRowColor"> 159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 160<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A></CODE></FONT></TD> 161<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html#appendCompletedChunk(T, int)">appendCompletedChunk</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> fullChunk, 162 int fullChunkLength)</CODE> 163 164<BR> 165 </TD> 166</TR> 167<TR BGCOLOR="white" CLASS="TableRowColor"> 168<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 169<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A></CODE></FONT></TD> 170<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html#completeAndClearBuffer(T, int)">completeAndClearBuffer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> lastChunk, 171 int lastChunkEntries)</CODE> 172 173<BR> 174 </TD> 175</TR> 176<TR BGCOLOR="white" CLASS="TableRowColor"> 177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 178<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A></CODE></FONT></TD> 179<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html#resetAndStart()">resetAndStart</A></B>()</CODE> 180 181<BR> 182 </TD> 183</TR> 184</TABLE> 185 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 186<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 187<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 188<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> 189</TR> 190<TR BGCOLOR="white" CLASS="TableRowColor"> 191<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> 192</TR> 193</TABLE> 194 195<P> 196 197<!-- ========= CONSTRUCTOR DETAIL ======== --> 198 199<A NAME="constructor_detail"><!-- --></A> 200<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 201<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 202<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 203<B>Constructor Detail</B></FONT></TH> 204</TR> 205</TABLE> 206 207<A NAME="PrimitiveArrayBuilder()"><!-- --></A><H3> 208PrimitiveArrayBuilder</H3> 209<PRE> 210protected <B>PrimitiveArrayBuilder</B>()</PRE> 211<DL> 212</DL> 213 214<!-- ============ METHOD DETAIL ========== --> 215 216<A NAME="method_detail"><!-- --></A> 217<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 218<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 219<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 220<B>Method Detail</B></FONT></TH> 221</TR> 222</TABLE> 223 224<A NAME="resetAndStart()"><!-- --></A><H3> 225resetAndStart</H3> 226<PRE> 227public <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> <B>resetAndStart</B>()</PRE> 228<DL> 229<DD><DL> 230</DL> 231</DD> 232</DL> 233<HR> 234 235<A NAME="appendCompletedChunk(java.lang.Object,int)"><!-- --></A><A NAME="appendCompletedChunk(T, int)"><!-- --></A><H3> 236appendCompletedChunk</H3> 237<PRE> 238public final <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> <B>appendCompletedChunk</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> fullChunk, 239 int fullChunkLength)</PRE> 240<DL> 241<DD><DL> 242 243<DT><B>Returns:</B><DD>Length of the next chunk to allocate</DL> 244</DD> 245</DL> 246<HR> 247 248<A NAME="completeAndClearBuffer(java.lang.Object,int)"><!-- --></A><A NAME="completeAndClearBuffer(T, int)"><!-- --></A><H3> 249completeAndClearBuffer</H3> 250<PRE> 251public <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> <B>completeAndClearBuffer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> lastChunk, 252 int lastChunkEntries)</PRE> 253<DL> 254<DD><DL> 255</DL> 256</DD> 257</DL> 258<HR> 259 260<A NAME="_constructArray(int)"><!-- --></A><H3> 261_constructArray</H3> 262<PRE> 263protected abstract <A HREF="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="type parameter in PrimitiveArrayBuilder">T</A> <B>_constructArray</B>(int len)</PRE> 264<DL> 265<DD><DL> 266</DL> 267</DD> 268</DL> 269<HR> 270 271<A NAME="_reset()"><!-- --></A><H3> 272_reset</H3> 273<PRE> 274protected void <B>_reset</B>()</PRE> 275<DL> 276<DD><DL> 277</DL> 278</DD> 279</DL> 280<!-- ========= END OF CLASS DATA ========= --> 281<HR> 282 283 284<!-- ======= START OF BOTTOM NAVBAR ====== --> 285<A NAME="navbar_bottom"><!-- --></A> 286<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 287<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 288<TR> 289<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 290<A NAME="navbar_bottom_firstrow"><!-- --></A> 291<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 292 <TR ALIGN="center" VALIGN="top"> 293 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 294 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 295 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 296 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PrimitiveArrayBuilder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 297 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 298 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 299 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 300 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 301 </TR> 302</TABLE> 303</TD> 304<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 305</EM> 306</TD> 307</TR> 308 309<TR> 310<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 311 <A HREF="../../../../../com/fasterxml/jackson/databind/util/ObjectIdMap.html" title="class in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 312 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Provider.html" title="interface in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 313<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 314 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" target="_top"><B>FRAMES</B></A> 315 <A HREF="PrimitiveArrayBuilder.html" target="_top"><B>NO FRAMES</B></A> 316 <SCRIPT type="text/javascript"> 317 <!-- 318 if(window==top) { 319 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 320 } 321 //--> 322</SCRIPT> 323<NOSCRIPT> 324 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 325</NOSCRIPT> 326 327 328</FONT></TD> 329</TR> 330<TR> 331<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 332 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 333<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 334DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 335</TR> 336</TABLE> 337<A NAME="skip-navbar_bottom"></A> 338<!-- ======== END OF BOTTOM NAVBAR ======= --> 339 340<HR> 341Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 342</BODY> 343</HTML> 344