1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:25 PDT 2013 --> 6<title>TokenBuffer (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="TokenBuffer (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/TokenBuffer.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../../index-all.html">Index</a></li> 34<li><a href="../../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../../org/codehaus/jackson/util/TextBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.html" target="_top">Frames</a></li> 44<li><a href="TokenBuffer.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li><a href="#nested_class_summary">Nested</a> | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson.util</div> 83<h2 title="Class TokenBuffer" class="title">Class TokenBuffer</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><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></li> 88<li> 89<ul class="inheritance"> 90<li><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonGenerator</a></li> 91<li> 92<ul class="inheritance"> 93<li>org.codehaus.jackson.util.TokenBuffer</li> 94</ul> 95</li> 96</ul> 97</li> 98</ul> 99<div class="description"> 100<ul class="blockList"> 101<li class="blockList"> 102<dl> 103<dt>All Implemented Interfaces:</dt> 104<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, <a href="../../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></dd> 105</dl> 106<hr> 107<br> 108<pre>public class <span class="strong">TokenBuffer</span> 109extends <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></pre> 110<div class="block">Utility class used for efficient storage of <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> 111 sequences, needed for temporary buffering. 112 Space efficient for different sequence lengths (especially so for smaller 113 ones; but not significantly less efficient for larger), highly efficient 114 for linear iteration and appending. Implemented as segmented/chunked 115 linked list of tokens; only modifications are via appends.</div> 116<dl><dt><span class="strong">Since:</span></dt> 117 <dd>1.5</dd></dl> 118</li> 119</ul> 120</div> 121<div class="summary"> 122<ul class="blockList"> 123<li class="blockList"> 124<!-- ======== NESTED CLASS SUMMARY ======== --> 125<ul class="blockList"> 126<li class="blockList"><a name="nested_class_summary"> 127<!-- --> 128</a> 129<h3>Nested Class Summary</h3> 130<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 131<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 132<tr> 133<th class="colFirst" scope="col">Modifier and Type</th> 134<th class="colLast" scope="col">Class and Description</th> 135</tr> 136<tr class="altColor"> 137<td class="colFirst"><code>protected static class </code></td> 138<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util">TokenBuffer.Parser</a></strong></code> </td> 139</tr> 140<tr class="rowColor"> 141<td class="colFirst"><code>protected static class </code></td> 142<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></strong></code> 143<div class="block">Individual segment of TokenBuffer that can store up to 16 tokens 144 (limited by 4 bits per token type marker requirement).</div> 145</td> 146</tr> 147</table> 148<ul class="blockList"> 149<li class="blockList"><a name="nested_classes_inherited_from_class_org.codehaus.jackson.JsonGenerator"> 150<!-- --> 151</a> 152<h3>Nested classes/interfaces inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></h3> 153<code><a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a></code></li> 154</ul> 155</li> 156</ul> 157<!-- =========== FIELD SUMMARY =========== --> 158<ul class="blockList"> 159<li class="blockList"><a name="field_summary"> 160<!-- --> 161</a> 162<h3>Field Summary</h3> 163<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 164<caption><span>Fields</span><span class="tabEnd"> </span></caption> 165<tr> 166<th class="colFirst" scope="col">Modifier and Type</th> 167<th class="colLast" scope="col">Field and Description</th> 168</tr> 169<tr class="altColor"> 170<td class="colFirst"><code>protected int</code></td> 171<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_appendOffset">_appendOffset</a></strong></code> 172<div class="block">Offset within last segment,</div> 173</td> 174</tr> 175<tr class="rowColor"> 176<td class="colFirst"><code>protected boolean</code></td> 177<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_closed">_closed</a></strong></code> </td> 178</tr> 179<tr class="altColor"> 180<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td> 181<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_first">_first</a></strong></code> 182<div class="block">First segment, for contents this buffer has</div> 183</td> 184</tr> 185<tr class="rowColor"> 186<td class="colFirst"><code>protected int</code></td> 187<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_generatorFeatures">_generatorFeatures</a></strong></code> 188<div class="block">Bit flag composed of bits that indicate which 189 <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a>s 190 are enabled.</div> 191</td> 192</tr> 193<tr class="altColor"> 194<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td> 195<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_last">_last</a></strong></code> 196<div class="block">Last segment of this buffer, one that is used 197 for appending more tokens</div> 198</td> 199</tr> 200<tr class="rowColor"> 201<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> 202<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_objectCodec">_objectCodec</a></strong></code> 203<div class="block">Object codec to use for stream-based object 204 conversion through parser/generator interfaces.</div> 205</td> 206</tr> 207<tr class="altColor"> 208<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a></code></td> 209<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_writeContext">_writeContext</a></strong></code> </td> 210</tr> 211<tr class="rowColor"> 212<td class="colFirst"><code>protected static int</code></td> 213<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#DEFAULT_PARSER_FEATURES">DEFAULT_PARSER_FEATURES</a></strong></code> </td> 214</tr> 215</table> 216<ul class="blockList"> 217<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonGenerator"> 218<!-- --> 219</a> 220<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></h3> 221<code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#_cfgPrettyPrinter">_cfgPrettyPrinter</a></code></li> 222</ul> 223</li> 224</ul> 225<!-- ======== CONSTRUCTOR SUMMARY ======== --> 226<ul class="blockList"> 227<li class="blockList"><a name="constructor_summary"> 228<!-- --> 229</a> 230<h3>Constructor Summary</h3> 231<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 232<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 233<tr> 234<th class="colOne" scope="col">Constructor and Description</th> 235</tr> 236<tr class="altColor"> 237<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#TokenBuffer(org.codehaus.jackson.ObjectCodec)">TokenBuffer</a></strong>(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</code> </td> 238</tr> 239</table> 240</li> 241</ul> 242<!-- ========== METHOD SUMMARY =========== --> 243<ul class="blockList"> 244<li class="blockList"><a name="method_summary"> 245<!-- --> 246</a> 247<h3>Method Summary</h3> 248<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 249<caption><span>Methods</span><span class="tabEnd"> </span></caption> 250<tr> 251<th class="colFirst" scope="col">Modifier and Type</th> 252<th class="colLast" scope="col">Method and Description</th> 253</tr> 254<tr class="altColor"> 255<td class="colFirst"><code>protected void</code></td> 256<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_append(org.codehaus.jackson.JsonToken)">_append</a></strong>(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type)</code> </td> 257</tr> 258<tr class="rowColor"> 259<td class="colFirst"><code>protected void</code></td> 260<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_append(org.codehaus.jackson.JsonToken, java.lang.Object)">_append</a></strong>(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type, 261 <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> value)</code> </td> 262</tr> 263<tr class="altColor"> 264<td class="colFirst"><code>protected void</code></td> 265<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_reportUnsupportedOperation()">_reportUnsupportedOperation</a></strong>()</code> </td> 266</tr> 267<tr class="rowColor"> 268<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 269<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#asParser()">asParser</a></strong>()</code> 270<div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents 271 stored in this buffer.</div> 272</td> 273</tr> 274<tr class="altColor"> 275<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 276<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#asParser(org.codehaus.jackson.JsonParser)">asParser</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> src)</code> </td> 277</tr> 278<tr class="rowColor"> 279<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 280<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#asParser(org.codehaus.jackson.ObjectCodec)">asParser</a></strong>(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</code> 281<div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents 282 stored in this buffer.</div> 283</td> 284</tr> 285<tr class="altColor"> 286<td class="colFirst"><code>void</code></td> 287<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#close()">close</a></strong>()</code> 288<div class="block">Method called to close this generator, so that no more content 289 can be written.</div> 290</td> 291</tr> 292<tr class="rowColor"> 293<td class="colFirst"><code>void</code></td> 294<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#copyCurrentEvent(org.codehaus.jackson.JsonParser)">copyCurrentEvent</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp)</code> 295<div class="block">Method for copying contents of the current event that 296 the given parser instance points to.</div> 297</td> 298</tr> 299<tr class="altColor"> 300<td class="colFirst"><code>void</code></td> 301<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#copyCurrentStructure(org.codehaus.jackson.JsonParser)">copyCurrentStructure</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp)</code> 302<div class="block">Method for copying contents of the current event 303 <b>and following events that it encloses</b> 304 the given parser instance points to.</div> 305</td> 306</tr> 307<tr class="rowColor"> 308<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 309<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#disable(org.codehaus.jackson.JsonGenerator.Feature)">disable</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> 310<div class="block">Method for disabling specified features 311 (check <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> 312</td> 313</tr> 314<tr class="altColor"> 315<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 316<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#enable(org.codehaus.jackson.JsonGenerator.Feature)">enable</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> 317<div class="block">Method for enabling specified parser features: 318 check <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> 319</td> 320</tr> 321<tr class="rowColor"> 322<td class="colFirst"><code>void</code></td> 323<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#flush()">flush</a></strong>()</code> 324<div class="block">Method called to flush any buffered content to the underlying 325 target (output stream, writer), and to flush the target itself 326 as well.</div> 327</td> 328</tr> 329<tr class="altColor"> 330<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> 331<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#getCodec()">getCodec</a></strong>()</code> 332<div class="block">Method for accessing the object used for writing Java 333 object as Json content 334 (using method <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> 335</td> 336</tr> 337<tr class="rowColor"> 338<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a></code></td> 339<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#getOutputContext()">getOutputContext</a></strong>()</code> </td> 340</tr> 341<tr class="altColor"> 342<td class="colFirst"><code>boolean</code></td> 343<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#isClosed()">isClosed</a></strong>()</code> 344<div class="block">Method that can be called to determine whether this generator 345 is closed or not.</div> 346</td> 347</tr> 348<tr class="rowColor"> 349<td class="colFirst"><code>boolean</code></td> 350<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isEnabled</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> 351<div class="block">Method for checking whether given feature is enabled.</div> 352</td> 353</tr> 354<tr class="altColor"> 355<td class="colFirst"><code>void</code></td> 356<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#serialize(org.codehaus.jackson.JsonGenerator)">serialize</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jgen)</code> 357<div class="block">Helper method that will write all contents of this buffer 358 using given <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>.</div> 359</td> 360</tr> 361<tr class="rowColor"> 362<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 363<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a></strong>(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</code> 364<div class="block">Method that can be called to set or reset the object to 365 use for writing Java objects as JsonContent 366 (using method <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> 367</td> 368</tr> 369<tr class="altColor"> 370<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 371<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#toString()">toString</a></strong>()</code> </td> 372</tr> 373<tr class="rowColor"> 374<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 375<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#useDefaultPrettyPrinter()">useDefaultPrettyPrinter</a></strong>()</code> 376<div class="block">Convenience method for enabling pretty-printing using 377 the default pretty printer 378 (<a href="../../../../org/codehaus/jackson/util/DefaultPrettyPrinter.html" title="class in org.codehaus.jackson.util"><code>DefaultPrettyPrinter</code></a>).</div> 379</td> 380</tr> 381<tr class="altColor"> 382<td class="colFirst"><code>void</code></td> 383<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)">writeBinary</a></strong>(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, 384 byte[] data, 385 int offset, 386 int len)</code> 387<div class="block">Method that will output given chunk of binary data as base64 388 encoded, as a complete String value (surrounded by double quotes).</div> 389</td> 390</tr> 391<tr class="rowColor"> 392<td class="colFirst"><code>void</code></td> 393<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeBoolean(boolean)">writeBoolean</a></strong>(boolean state)</code> 394<div class="block">Method for outputting literal Json boolean value (one of 395 Strings 'true' and 'false').</div> 396</td> 397</tr> 398<tr class="altColor"> 399<td class="colFirst"><code>void</code></td> 400<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeEndArray()">writeEndArray</a></strong>()</code> 401<div class="block">Method for writing closing marker of a JSON Array value 402 (character ']'; plus possible white space decoration 403 if pretty-printing is enabled).</div> 404</td> 405</tr> 406<tr class="rowColor"> 407<td class="colFirst"><code>void</code></td> 408<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeEndObject()">writeEndObject</a></strong>()</code> 409<div class="block">Method for writing closing marker of a JSON Object value 410 (character '}'; plus possible white space decoration 411 if pretty-printing is enabled).</div> 412</td> 413</tr> 414<tr class="altColor"> 415<td class="colFirst"><code>void</code></td> 416<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeFieldName(org.codehaus.jackson.SerializableString)">writeFieldName</a></strong>(<a href="../../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> name)</code> 417<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>JsonGenerator.writeFieldName(String)</code></a>, main difference 418 being that it may perform better as some of processing (such as 419 quoting of certain characters, or encoding into external encoding 420 if supported by generator) can be done just once and reused for 421 later calls.</div> 422</td> 423</tr> 424<tr class="rowColor"> 425<td class="colFirst"><code>void</code></td> 426<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeFieldName(org.codehaus.jackson.io.SerializedString)">writeFieldName</a></strong>(<a href="../../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io">SerializedString</a> name)</code> 427<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>JsonGenerator.writeFieldName(String)</code></a>, main difference 428 being that it may perform better as some of processing (such as 429 quoting of certain characters, or encoding into external encoding 430 if supported by generator) can be done just once and reused for 431 later calls.</div> 432</td> 433</tr> 434<tr class="altColor"> 435<td class="colFirst"><code>void</code></td> 436<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeFieldName(java.lang.String)">writeFieldName</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> 437<div class="block">Method for writing a field name (JSON String surrounded by 438 double quotes: syntactically identical to a JSON String value), 439 possibly decorated by white space if pretty-printing is enabled.</div> 440</td> 441</tr> 442<tr class="rowColor"> 443<td class="colFirst"><code>void</code></td> 444<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNull()">writeNull</a></strong>()</code> 445<div class="block">Method for outputting literal Json null value.</div> 446</td> 447</tr> 448<tr class="altColor"> 449<td class="colFirst"><code>void</code></td> 450<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(java.math.BigDecimal)">writeNumber</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> dec)</code> 451<div class="block">Method for outputting indicate Json numeric value.</div> 452</td> 453</tr> 454<tr class="rowColor"> 455<td class="colFirst"><code>void</code></td> 456<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(java.math.BigInteger)">writeNumber</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> v)</code> 457<div class="block">Method for outputting given value as Json number.</div> 458</td> 459</tr> 460<tr class="altColor"> 461<td class="colFirst"><code>void</code></td> 462<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(double)">writeNumber</a></strong>(double d)</code> 463<div class="block">Method for outputting indicate Json numeric value.</div> 464</td> 465</tr> 466<tr class="rowColor"> 467<td class="colFirst"><code>void</code></td> 468<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(float)">writeNumber</a></strong>(float f)</code> 469<div class="block">Method for outputting indicate Json numeric value.</div> 470</td> 471</tr> 472<tr class="altColor"> 473<td class="colFirst"><code>void</code></td> 474<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(int)">writeNumber</a></strong>(int i)</code> 475<div class="block">Method for outputting given value as Json number.</div> 476</td> 477</tr> 478<tr class="rowColor"> 479<td class="colFirst"><code>void</code></td> 480<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(long)">writeNumber</a></strong>(long l)</code> 481<div class="block">Method for outputting given value as Json number.</div> 482</td> 483</tr> 484<tr class="altColor"> 485<td class="colFirst"><code>void</code></td> 486<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(java.lang.String)">writeNumber</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodedValue)</code> 487<div class="block">Write method that can be used for custom numeric types that can 488 not be (easily?) converted to "standard" Java number types.</div> 489</td> 490</tr> 491<tr class="rowColor"> 492<td class="colFirst"><code>void</code></td> 493<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeObject(java.lang.Object)">writeObject</a></strong>(<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> value)</code> 494<div class="block">Method for writing given Java object (POJO) as Json.</div> 495</td> 496</tr> 497<tr class="altColor"> 498<td class="colFirst"><code>void</code></td> 499<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRaw(char)">writeRaw</a></strong>(char c)</code> 500<div class="block">Method that will force generator to copy 501 input text verbatim with <b>no</b> modifications (including 502 that no escaping is done and no separators are added even 503 if context [array, object] would otherwise require such).</div> 504</td> 505</tr> 506<tr class="rowColor"> 507<td class="colFirst"><code>void</code></td> 508<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRaw(char[], int, int)">writeRaw</a></strong>(char[] text, 509 int offset, 510 int len)</code> 511<div class="block">Method that will force generator to copy 512 input text verbatim with <b>no</b> modifications (including 513 that no escaping is done and no separators are added even 514 if context [array, object] would otherwise require such).</div> 515</td> 516</tr> 517<tr class="altColor"> 518<td class="colFirst"><code>void</code></td> 519<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRaw(java.lang.String)">writeRaw</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code> 520<div class="block">Method that will force generator to copy 521 input text verbatim with <b>no</b> modifications (including 522 that no escaping is done and no separators are added even 523 if context [array, object] would otherwise require such).</div> 524</td> 525</tr> 526<tr class="rowColor"> 527<td class="colFirst"><code>void</code></td> 528<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRaw(java.lang.String, int, int)">writeRaw</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text, 529 int offset, 530 int len)</code> 531<div class="block">Method that will force generator to copy 532 input text verbatim with <b>no</b> modifications (including 533 that no escaping is done and no separators are added even 534 if context [array, object] would otherwise require such).</div> 535</td> 536</tr> 537<tr class="altColor"> 538<td class="colFirst"><code>void</code></td> 539<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRawUTF8String(byte[], int, int)">writeRawUTF8String</a></strong>(byte[] text, 540 int offset, 541 int length)</code> 542<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a> but that takes as 543 its input a UTF-8 encoded String that is to be output as-is, without additional 544 escaping (type of which depends on data format; backslashes for JSON).</div> 545</td> 546</tr> 547<tr class="rowColor"> 548<td class="colFirst"><code>void</code></td> 549<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRawValue(char[], int, int)">writeRawValue</a></strong>(char[] text, 550 int offset, 551 int len)</code> </td> 552</tr> 553<tr class="altColor"> 554<td class="colFirst"><code>void</code></td> 555<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRawValue(java.lang.String)">writeRawValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code> 556<div class="block">Method that will force generator to copy 557 input text verbatim without any modifications, but assuming 558 it must constitute a single legal JSON value (number, string, 559 boolean, null, Array or List).</div> 560</td> 561</tr> 562<tr class="rowColor"> 563<td class="colFirst"><code>void</code></td> 564<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRawValue(java.lang.String, int, int)">writeRawValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text, 565 int offset, 566 int len)</code> </td> 567</tr> 568<tr class="altColor"> 569<td class="colFirst"><code>void</code></td> 570<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeStartArray()">writeStartArray</a></strong>()</code> 571<div class="block">Method for writing starting marker of a JSON Array value 572 (character '['; plus possible white space decoration 573 if pretty-printing is enabled).</div> 574</td> 575</tr> 576<tr class="rowColor"> 577<td class="colFirst"><code>void</code></td> 578<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeStartObject()">writeStartObject</a></strong>()</code> 579<div class="block">Method for writing starting marker of a JSON Object value 580 (character '{'; plus possible white space decoration 581 if pretty-printing is enabled).</div> 582</td> 583</tr> 584<tr class="altColor"> 585<td class="colFirst"><code>void</code></td> 586<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeString(char[], int, int)">writeString</a></strong>(char[] text, 587 int offset, 588 int len)</code> 589<div class="block">Method for outputting a String value.</div> 590</td> 591</tr> 592<tr class="rowColor"> 593<td class="colFirst"><code>void</code></td> 594<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeString(org.codehaus.jackson.SerializableString)">writeString</a></strong>(<a href="../../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> text)</code> 595<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a>, but that takes 596 <a href="../../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><code>SerializableString</code></a> which can make this potentially 597 more efficient to call as generator may be able to reuse 598 quoted and/or encoded representation.</div> 599</td> 600</tr> 601<tr class="altColor"> 602<td class="colFirst"><code>void</code></td> 603<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeString(java.lang.String)">writeString</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code> 604<div class="block">Method for outputting a String value.</div> 605</td> 606</tr> 607<tr class="rowColor"> 608<td class="colFirst"><code>void</code></td> 609<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeTree(org.codehaus.jackson.JsonNode)">writeTree</a></strong>(<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> rootNode)</code> 610<div class="block">Method for writing given JSON tree (expressed as a tree 611 where given JsonNode is the root) using this generator.</div> 612</td> 613</tr> 614<tr class="altColor"> 615<td class="colFirst"><code>void</code></td> 616<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeUTF8String(byte[], int, int)">writeUTF8String</a></strong>(byte[] text, 617 int offset, 618 int length)</code> 619<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a> but that takes as its input 620 a UTF-8 encoded String which has <b>not</b> been escaped using whatever 621 escaping scheme data format requires (for JSON that is backslash-escaping 622 for control characters and double-quotes; for other formats something else).</div> 623</td> 624</tr> 625</table> 626<ul class="blockList"> 627<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonGenerator"> 628<!-- --> 629</a> 630<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></h3> 631<code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#canUseSchema(org.codehaus.jackson.FormatSchema)">canUseSchema</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)">configure</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#disableFeature(org.codehaus.jackson.JsonGenerator.Feature)">disableFeature</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#enableFeature(org.codehaus.jackson.JsonGenerator.Feature)">enableFeature</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#getCharacterEscapes()">getCharacterEscapes</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#getHighestEscapedChar()">getHighestEscapedChar</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#getOutputTarget()">getOutputTarget</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isFeatureEnabled</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setCharacterEscapes(org.codehaus.jackson.io.CharacterEscapes)">setCharacterEscapes</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)">setFeature</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setHighestNonEscapedChar(int)">setHighestNonEscapedChar</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setPrettyPrinter(org.codehaus.jackson.PrettyPrinter)">setPrettyPrinter</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)">setSchema</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#version()">version</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeArrayFieldStart(java.lang.String)">writeArrayFieldStart</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[])">writeBinary</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[], int, int)">writeBinary</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinaryField(java.lang.String, byte[])">writeBinaryField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBooleanField(java.lang.String, boolean)">writeBooleanField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNullField(java.lang.String)">writeNullField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, java.math.BigDecimal)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, double)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, float)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, int)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, long)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObjectField(java.lang.String, java.lang.Object)">writeObjectField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObjectFieldStart(java.lang.String)">writeObjectFieldStart</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStringField(java.lang.String, java.lang.String)">writeStringField</a></code></li> 632</ul> 633<ul class="blockList"> 634<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 635<!-- --> 636</a> 637<h3>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></h3> 638<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#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></li> 639</ul> 640</li> 641</ul> 642</li> 643</ul> 644</div> 645<div class="details"> 646<ul class="blockList"> 647<li class="blockList"> 648<!-- ============ FIELD DETAIL =========== --> 649<ul class="blockList"> 650<li class="blockList"><a name="field_detail"> 651<!-- --> 652</a> 653<h3>Field Detail</h3> 654<a name="DEFAULT_PARSER_FEATURES"> 655<!-- --> 656</a> 657<ul class="blockList"> 658<li class="blockList"> 659<h4>DEFAULT_PARSER_FEATURES</h4> 660<pre>protected static final int DEFAULT_PARSER_FEATURES</pre> 661</li> 662</ul> 663<a name="_objectCodec"> 664<!-- --> 665</a> 666<ul class="blockList"> 667<li class="blockList"> 668<h4>_objectCodec</h4> 669<pre>protected <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> _objectCodec</pre> 670<div class="block">Object codec to use for stream-based object 671 conversion through parser/generator interfaces. If null, 672 such methods can not be used.</div> 673</li> 674</ul> 675<a name="_generatorFeatures"> 676<!-- --> 677</a> 678<ul class="blockList"> 679<li class="blockList"> 680<h4>_generatorFeatures</h4> 681<pre>protected int _generatorFeatures</pre> 682<div class="block">Bit flag composed of bits that indicate which 683 <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a>s 684 are enabled. 685<p> 686 NOTE: most features have no effect on this class</div> 687</li> 688</ul> 689<a name="_closed"> 690<!-- --> 691</a> 692<ul class="blockList"> 693<li class="blockList"> 694<h4>_closed</h4> 695<pre>protected boolean _closed</pre> 696</li> 697</ul> 698<a name="_first"> 699<!-- --> 700</a> 701<ul class="blockList"> 702<li class="blockList"> 703<h4>_first</h4> 704<pre>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> _first</pre> 705<div class="block">First segment, for contents this buffer has</div> 706</li> 707</ul> 708<a name="_last"> 709<!-- --> 710</a> 711<ul class="blockList"> 712<li class="blockList"> 713<h4>_last</h4> 714<pre>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> _last</pre> 715<div class="block">Last segment of this buffer, one that is used 716 for appending more tokens</div> 717</li> 718</ul> 719<a name="_appendOffset"> 720<!-- --> 721</a> 722<ul class="blockList"> 723<li class="blockList"> 724<h4>_appendOffset</h4> 725<pre>protected int _appendOffset</pre> 726<div class="block">Offset within last segment,</div> 727</li> 728</ul> 729<a name="_writeContext"> 730<!-- --> 731</a> 732<ul class="blockListLast"> 733<li class="blockList"> 734<h4>_writeContext</h4> 735<pre>protected <a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a> _writeContext</pre> 736</li> 737</ul> 738</li> 739</ul> 740<!-- ========= CONSTRUCTOR DETAIL ======== --> 741<ul class="blockList"> 742<li class="blockList"><a name="constructor_detail"> 743<!-- --> 744</a> 745<h3>Constructor Detail</h3> 746<a name="TokenBuffer(org.codehaus.jackson.ObjectCodec)"> 747<!-- --> 748</a> 749<ul class="blockListLast"> 750<li class="blockList"> 751<h4>TokenBuffer</h4> 752<pre>public TokenBuffer(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</pre> 753<dl><dt><span class="strong">Parameters:</span></dt><dd><code>codec</code> - Object codec to use for stream-based object 754 conversion through parser/generator interfaces. If null, 755 such methods can not be used.</dd></dl> 756</li> 757</ul> 758</li> 759</ul> 760<!-- ============ METHOD DETAIL ========== --> 761<ul class="blockList"> 762<li class="blockList"><a name="method_detail"> 763<!-- --> 764</a> 765<h3>Method Detail</h3> 766<a name="asParser()"> 767<!-- --> 768</a> 769<ul class="blockList"> 770<li class="blockList"> 771<h4>asParser</h4> 772<pre>public <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> asParser()</pre> 773<div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents 774 stored in this buffer. Will use default <code>_objectCodec</code> for 775 object conversions. 776<p> 777 Note: instances are not synchronized, that is, they are not thread-safe 778 if there are concurrent appends to the underlying buffer.</div> 779<dl><dt><span class="strong">Returns:</span></dt><dd>Parser that can be used for reading contents stored in this buffer</dd></dl> 780</li> 781</ul> 782<a name="asParser(org.codehaus.jackson.ObjectCodec)"> 783<!-- --> 784</a> 785<ul class="blockList"> 786<li class="blockList"> 787<h4>asParser</h4> 788<pre>public <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> asParser(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</pre> 789<div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents 790 stored in this buffer. 791<p> 792 Note: instances are not synchronized, that is, they are not thread-safe 793 if there are concurrent appends to the underlying buffer.</div> 794<dl><dt><span class="strong">Parameters:</span></dt><dd><code>codec</code> - Object codec to use for stream-based object 795 conversion through parser/generator interfaces. If null, 796 such methods can not be used.</dd> 797<dt><span class="strong">Returns:</span></dt><dd>Parser that can be used for reading contents stored in this buffer</dd></dl> 798</li> 799</ul> 800<a name="asParser(org.codehaus.jackson.JsonParser)"> 801<!-- --> 802</a> 803<ul class="blockList"> 804<li class="blockList"> 805<h4>asParser</h4> 806<pre>public <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> asParser(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> src)</pre> 807<dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Parser to use for accessing source information 808 like location, configured codec</dd></dl> 809</li> 810</ul> 811<a name="serialize(org.codehaus.jackson.JsonGenerator)"> 812<!-- --> 813</a> 814<ul class="blockList"> 815<li class="blockList"> 816<h4>serialize</h4> 817<pre>public void serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jgen) 818 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 819 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 820<div class="block">Helper method that will write all contents of this buffer 821 using given <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>. 822<p> 823 Note: this method would be enough to implement 824 <code>JsonSerializer</code> for <code>TokenBuffer</code> type; 825 but we can not have upwards 826 references (from core to mapper package); and as such we also 827 can not take second argument.</div> 828<dl><dt><span class="strong">Throws:</span></dt> 829<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 830<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 831</li> 832</ul> 833<a name="toString()"> 834<!-- --> 835</a> 836<ul class="blockList"> 837<li class="blockList"> 838<h4>toString</h4> 839<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 840<dl> 841<dt><strong>Overrides:</strong></dt> 842<dd><code><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></code> in class <code><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></dd> 843</dl> 844</li> 845</ul> 846<a name="enable(org.codehaus.jackson.JsonGenerator.Feature)"> 847<!-- --> 848</a> 849<ul class="blockList"> 850<li class="blockList"> 851<h4>enable</h4> 852<pre>public <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> enable(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 853<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)">JsonGenerator</a></code></strong></div> 854<div class="block">Method for enabling specified parser features: 855 check <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> 856<dl> 857<dt><strong>Specified by:</strong></dt> 858<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)">enable</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 859<dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 860</li> 861</ul> 862<a name="disable(org.codehaus.jackson.JsonGenerator.Feature)"> 863<!-- --> 864</a> 865<ul class="blockList"> 866<li class="blockList"> 867<h4>disable</h4> 868<pre>public <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> disable(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 869<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)">JsonGenerator</a></code></strong></div> 870<div class="block">Method for disabling specified features 871 (check <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> 872<dl> 873<dt><strong>Specified by:</strong></dt> 874<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)">disable</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 875<dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 876</li> 877</ul> 878<a name="isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> 879<!-- --> 880</a> 881<ul class="blockList"> 882<li class="blockList"> 883<h4>isEnabled</h4> 884<pre>public boolean isEnabled(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 885<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)">JsonGenerator</a></code></strong></div> 886<div class="block">Method for checking whether given feature is enabled. 887 Check <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> 888<dl> 889<dt><strong>Specified by:</strong></dt> 890<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isEnabled</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 891</dl> 892</li> 893</ul> 894<a name="useDefaultPrettyPrinter()"> 895<!-- --> 896</a> 897<ul class="blockList"> 898<li class="blockList"> 899<h4>useDefaultPrettyPrinter</h4> 900<pre>public <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> useDefaultPrettyPrinter()</pre> 901<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#useDefaultPrettyPrinter()">JsonGenerator</a></code></strong></div> 902<div class="block">Convenience method for enabling pretty-printing using 903 the default pretty printer 904 (<a href="../../../../org/codehaus/jackson/util/DefaultPrettyPrinter.html" title="class in org.codehaus.jackson.util"><code>DefaultPrettyPrinter</code></a>).</div> 905<dl> 906<dt><strong>Specified by:</strong></dt> 907<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#useDefaultPrettyPrinter()">useDefaultPrettyPrinter</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 908<dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 909</li> 910</ul> 911<a name="setCodec(org.codehaus.jackson.ObjectCodec)"> 912<!-- --> 913</a> 914<ul class="blockList"> 915<li class="blockList"> 916<h4>setCodec</h4> 917<pre>public <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setCodec(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</pre> 918<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#setCodec(org.codehaus.jackson.ObjectCodec)">JsonGenerator</a></code></strong></div> 919<div class="block">Method that can be called to set or reset the object to 920 use for writing Java objects as JsonContent 921 (using method <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> 922<dl> 923<dt><strong>Specified by:</strong></dt> 924<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 925<dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 926</li> 927</ul> 928<a name="getCodec()"> 929<!-- --> 930</a> 931<ul class="blockList"> 932<li class="blockList"> 933<h4>getCodec</h4> 934<pre>public <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> 935<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#getCodec()">JsonGenerator</a></code></strong></div> 936<div class="block">Method for accessing the object used for writing Java 937 object as Json content 938 (using method <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> 939<dl> 940<dt><strong>Specified by:</strong></dt> 941<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#getCodec()">getCodec</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 942</dl> 943</li> 944</ul> 945<a name="getOutputContext()"> 946<!-- --> 947</a> 948<ul class="blockList"> 949<li class="blockList"> 950<h4>getOutputContext</h4> 951<pre>public final <a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a> getOutputContext()</pre> 952<dl> 953<dt><strong>Specified by:</strong></dt> 954<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#getOutputContext()">getOutputContext</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 955<dt><span class="strong">Returns:</span></dt><dd>Context object that can give information about logical 956 position within generated json content.</dd></dl> 957</li> 958</ul> 959<a name="flush()"> 960<!-- --> 961</a> 962<ul class="blockList"> 963<li class="blockList"> 964<h4>flush</h4> 965<pre>public void flush() 966 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 967<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#flush()">JsonGenerator</a></code></strong></div> 968<div class="block">Method called to flush any buffered content to the underlying 969 target (output stream, writer), and to flush the target itself 970 as well.</div> 971<dl> 972<dt><strong>Specified by:</strong></dt> 973<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#flush()">flush</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 974<dt><span class="strong">Throws:</span></dt> 975<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 976</li> 977</ul> 978<a name="close()"> 979<!-- --> 980</a> 981<ul class="blockList"> 982<li class="blockList"> 983<h4>close</h4> 984<pre>public void close() 985 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 986<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#close()">JsonGenerator</a></code></strong></div> 987<div class="block">Method called to close this generator, so that no more content 988 can be written. 989<p> 990 Whether the underlying target (stream, writer) gets closed depends 991 on whether this generator either manages the target (i.e. is the 992 only one with access to the target -- case if caller passes a 993 reference to the resource such as File, but not stream); or 994 has feature <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_TARGET"><code>JsonGenerator.Feature.AUTO_CLOSE_TARGET</code></a> enabled. 995 If either of above is true, the target is also closed. Otherwise 996 (not managing, feature not enabled), target is not closed.</div> 997<dl> 998<dt><strong>Specified by:</strong></dt> 999<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd> 1000<dt><strong>Specified by:</strong></dt> 1001<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd> 1002<dt><strong>Specified by:</strong></dt> 1003<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#close()">close</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1004<dt><span class="strong">Throws:</span></dt> 1005<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 1006</li> 1007</ul> 1008<a name="isClosed()"> 1009<!-- --> 1010</a> 1011<ul class="blockList"> 1012<li class="blockList"> 1013<h4>isClosed</h4> 1014<pre>public boolean isClosed()</pre> 1015<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isClosed()">JsonGenerator</a></code></strong></div> 1016<div class="block">Method that can be called to determine whether this generator 1017 is closed or not. If it is closed, no more output can be done.</div> 1018<dl> 1019<dt><strong>Specified by:</strong></dt> 1020<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isClosed()">isClosed</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1021</dl> 1022</li> 1023</ul> 1024<a name="writeStartArray()"> 1025<!-- --> 1026</a> 1027<ul class="blockList"> 1028<li class="blockList"> 1029<h4>writeStartArray</h4> 1030<pre>public final void writeStartArray() 1031 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1032 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1033<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartArray()">JsonGenerator</a></code></strong></div> 1034<div class="block">Method for writing starting marker of a JSON Array value 1035 (character '['; plus possible white space decoration 1036 if pretty-printing is enabled). 1037<p> 1038 Array values can be written in any context where values 1039 are allowed: meaning everywhere except for when 1040 a field name is expected.</div> 1041<dl> 1042<dt><strong>Specified by:</strong></dt> 1043<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartArray()">writeStartArray</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1044<dt><span class="strong">Throws:</span></dt> 1045<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1046<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1047</li> 1048</ul> 1049<a name="writeEndArray()"> 1050<!-- --> 1051</a> 1052<ul class="blockList"> 1053<li class="blockList"> 1054<h4>writeEndArray</h4> 1055<pre>public final void writeEndArray() 1056 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1057 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1058<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndArray()">JsonGenerator</a></code></strong></div> 1059<div class="block">Method for writing closing marker of a JSON Array value 1060 (character ']'; plus possible white space decoration 1061 if pretty-printing is enabled). 1062<p> 1063 Marker can be written if the innermost structured type 1064 is Array.</div> 1065<dl> 1066<dt><strong>Specified by:</strong></dt> 1067<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndArray()">writeEndArray</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1068<dt><span class="strong">Throws:</span></dt> 1069<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1070<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1071</li> 1072</ul> 1073<a name="writeStartObject()"> 1074<!-- --> 1075</a> 1076<ul class="blockList"> 1077<li class="blockList"> 1078<h4>writeStartObject</h4> 1079<pre>public final void writeStartObject() 1080 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1081 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1082<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartObject()">JsonGenerator</a></code></strong></div> 1083<div class="block">Method for writing starting marker of a JSON Object value 1084 (character '{'; plus possible white space decoration 1085 if pretty-printing is enabled). 1086<p> 1087 Object values can be written in any context where values 1088 are allowed: meaning everywhere except for when 1089 a field name is expected.</div> 1090<dl> 1091<dt><strong>Specified by:</strong></dt> 1092<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartObject()">writeStartObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1093<dt><span class="strong">Throws:</span></dt> 1094<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1095<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1096</li> 1097</ul> 1098<a name="writeEndObject()"> 1099<!-- --> 1100</a> 1101<ul class="blockList"> 1102<li class="blockList"> 1103<h4>writeEndObject</h4> 1104<pre>public final void writeEndObject() 1105 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1106 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1107<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndObject()">JsonGenerator</a></code></strong></div> 1108<div class="block">Method for writing closing marker of a JSON Object value 1109 (character '}'; plus possible white space decoration 1110 if pretty-printing is enabled). 1111<p> 1112 Marker can be written if the innermost structured type 1113 is Object, and the last written event was either a 1114 complete value, or START-OBJECT marker (see JSON specification 1115 for more details).</div> 1116<dl> 1117<dt><strong>Specified by:</strong></dt> 1118<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndObject()">writeEndObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1119<dt><span class="strong">Throws:</span></dt> 1120<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1121<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1122</li> 1123</ul> 1124<a name="writeFieldName(java.lang.String)"> 1125<!-- --> 1126</a> 1127<ul class="blockList"> 1128<li class="blockList"> 1129<h4>writeFieldName</h4> 1130<pre>public final void writeFieldName(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name) 1131 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1132 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1133<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)">JsonGenerator</a></code></strong></div> 1134<div class="block">Method for writing a field name (JSON String surrounded by 1135 double quotes: syntactically identical to a JSON String value), 1136 possibly decorated by white space if pretty-printing is enabled. 1137<p> 1138 Field names can only be written in Object context (check out 1139 JSON specification for details), when field name is expected 1140 (field names alternate with values).</div> 1141<dl> 1142<dt><strong>Specified by:</strong></dt> 1143<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)">writeFieldName</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1144<dt><span class="strong">Throws:</span></dt> 1145<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1146<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1147</li> 1148</ul> 1149<a name="writeFieldName(org.codehaus.jackson.SerializableString)"> 1150<!-- --> 1151</a> 1152<ul class="blockList"> 1153<li class="blockList"> 1154<h4>writeFieldName</h4> 1155<pre>public void writeFieldName(<a href="../../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> name) 1156 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1157 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1158<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.SerializableString)">JsonGenerator</a></code></strong></div> 1159<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>JsonGenerator.writeFieldName(String)</code></a>, main difference 1160 being that it may perform better as some of processing (such as 1161 quoting of certain characters, or encoding into external encoding 1162 if supported by generator) can be done just once and reused for 1163 later calls. 1164<p> 1165 Default implementation simple uses unprocessed name container in 1166 serialized String; implementations are strongly encouraged to make 1167 use of more efficient methods argument object has.</div> 1168<dl> 1169<dt><strong>Overrides:</strong></dt> 1170<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.SerializableString)">writeFieldName</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1171<dt><span class="strong">Throws:</span></dt> 1172<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1173<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1174</li> 1175</ul> 1176<a name="writeFieldName(org.codehaus.jackson.io.SerializedString)"> 1177<!-- --> 1178</a> 1179<ul class="blockList"> 1180<li class="blockList"> 1181<h4>writeFieldName</h4> 1182<pre>public void writeFieldName(<a href="../../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io">SerializedString</a> name) 1183 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1184 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1185<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.io.SerializedString)">JsonGenerator</a></code></strong></div> 1186<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>JsonGenerator.writeFieldName(String)</code></a>, main difference 1187 being that it may perform better as some of processing (such as 1188 quoting of certain characters, or encoding into external encoding 1189 if supported by generator) can be done just once and reused for 1190 later calls. 1191<p> 1192 Default implementation simple uses unprocessed name container in 1193 serialized String; implementations are strongly encouraged to make 1194 use of more efficient methods argument object has.</div> 1195<dl> 1196<dt><strong>Overrides:</strong></dt> 1197<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.io.SerializedString)">writeFieldName</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1198<dt><span class="strong">Throws:</span></dt> 1199<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1200<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1201</li> 1202</ul> 1203<a name="writeString(java.lang.String)"> 1204<!-- --> 1205</a> 1206<ul class="blockList"> 1207<li class="blockList"> 1208<h4>writeString</h4> 1209<pre>public void writeString(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text) 1210 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1211 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1212<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)">JsonGenerator</a></code></strong></div> 1213<div class="block">Method for outputting a String value. Depending on context 1214 this means either array element, (object) field value or 1215 a stand alone String; but in all cases, String will be 1216 surrounded in double quotes, and contents will be properly 1217 escaped as required by JSON specification.</div> 1218<dl> 1219<dt><strong>Specified by:</strong></dt> 1220<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)">writeString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1221<dt><span class="strong">Throws:</span></dt> 1222<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1223<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1224</li> 1225</ul> 1226<a name="writeString(char[], int, int)"> 1227<!-- --> 1228</a> 1229<ul class="blockList"> 1230<li class="blockList"> 1231<h4>writeString</h4> 1232<pre>public void writeString(char[] text, 1233 int offset, 1234 int len) 1235 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1236 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1237<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(char[], int, int)">JsonGenerator</a></code></strong></div> 1238<div class="block">Method for outputting a String value. Depending on context 1239 this means either array element, (object) field value or 1240 a stand alone String; but in all cases, String will be 1241 surrounded in double quotes, and contents will be properly 1242 escaped as required by JSON specification.</div> 1243<dl> 1244<dt><strong>Specified by:</strong></dt> 1245<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(char[], int, int)">writeString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1246<dt><span class="strong">Throws:</span></dt> 1247<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1248<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1249</li> 1250</ul> 1251<a name="writeString(org.codehaus.jackson.SerializableString)"> 1252<!-- --> 1253</a> 1254<ul class="blockList"> 1255<li class="blockList"> 1256<h4>writeString</h4> 1257<pre>public void writeString(<a href="../../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> text) 1258 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1259 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1260<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(org.codehaus.jackson.SerializableString)">JsonGenerator</a></code></strong></div> 1261<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a>, but that takes 1262 <a href="../../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><code>SerializableString</code></a> which can make this potentially 1263 more efficient to call as generator may be able to reuse 1264 quoted and/or encoded representation. 1265<p> 1266 Default implementation just calls <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a>; 1267 sub-classes should override it with more efficient implementation 1268 if possible.</div> 1269<dl> 1270<dt><strong>Overrides:</strong></dt> 1271<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(org.codehaus.jackson.SerializableString)">writeString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1272<dt><span class="strong">Throws:</span></dt> 1273<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1274<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1275</li> 1276</ul> 1277<a name="writeRawUTF8String(byte[], int, int)"> 1278<!-- --> 1279</a> 1280<ul class="blockList"> 1281<li class="blockList"> 1282<h4>writeRawUTF8String</h4> 1283<pre>public void writeRawUTF8String(byte[] text, 1284 int offset, 1285 int length) 1286 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1287 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1288<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawUTF8String(byte[], int, int)">JsonGenerator</a></code></strong></div> 1289<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a> but that takes as 1290 its input a UTF-8 encoded String that is to be output as-is, without additional 1291 escaping (type of which depends on data format; backslashes for JSON). 1292 However, quoting that data format requires (like double-quotes for JSON) will be added 1293 around the value if and as necessary. 1294<p> 1295 Note that some backends may choose not to support this method: for 1296 example, if underlying destination is a <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io"><code>Writer</code></a> 1297 using this method would require UTF-8 decoding. 1298 If so, implementation may instead choose to throw a 1299 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> due to ineffectiveness 1300 of having to decode input.</div> 1301<dl> 1302<dt><strong>Specified by:</strong></dt> 1303<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawUTF8String(byte[], int, int)">writeRawUTF8String</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1304<dt><span class="strong">Throws:</span></dt> 1305<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1306<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1307</li> 1308</ul> 1309<a name="writeUTF8String(byte[], int, int)"> 1310<!-- --> 1311</a> 1312<ul class="blockList"> 1313<li class="blockList"> 1314<h4>writeUTF8String</h4> 1315<pre>public void writeUTF8String(byte[] text, 1316 int offset, 1317 int length) 1318 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1319 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1320<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeUTF8String(byte[], int, int)">JsonGenerator</a></code></strong></div> 1321<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(String)</code></a> but that takes as its input 1322 a UTF-8 encoded String which has <b>not</b> been escaped using whatever 1323 escaping scheme data format requires (for JSON that is backslash-escaping 1324 for control characters and double-quotes; for other formats something else). 1325 This means that textual JSON backends need to check if value needs 1326 JSON escaping, but otherwise can just be copied as is to output. 1327 Also, quoting that data format requires (like double-quotes for JSON) will be added 1328 around the value if and as necessary. 1329<p> 1330 Note that some backends may choose not to support this method: for 1331 example, if underlying destination is a <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io"><code>Writer</code></a> 1332 using this method would require UTF-8 decoding. 1333 In this case 1334 generator implementation may instead choose to throw a 1335 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> due to ineffectiveness 1336 of having to decode input.</div> 1337<dl> 1338<dt><strong>Specified by:</strong></dt> 1339<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeUTF8String(byte[], int, int)">writeUTF8String</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1340<dt><span class="strong">Throws:</span></dt> 1341<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1342<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1343</li> 1344</ul> 1345<a name="writeRaw(java.lang.String)"> 1346<!-- --> 1347</a> 1348<ul class="blockList"> 1349<li class="blockList"> 1350<h4>writeRaw</h4> 1351<pre>public void writeRaw(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text) 1352 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1353 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1354<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)">JsonGenerator</a></code></strong></div> 1355<div class="block">Method that will force generator to copy 1356 input text verbatim with <b>no</b> modifications (including 1357 that no escaping is done and no separators are added even 1358 if context [array, object] would otherwise require such). 1359 If such separators are desired, use 1360 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>JsonGenerator.writeRawValue(String)</code></a> instead. 1361<p> 1362 Note that not all generator implementations necessarily support 1363 such by-pass methods: those that do not will throw 1364 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</div> 1365<dl> 1366<dt><strong>Specified by:</strong></dt> 1367<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1368<dt><span class="strong">Throws:</span></dt> 1369<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1370<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1371</li> 1372</ul> 1373<a name="writeRaw(java.lang.String, int, int)"> 1374<!-- --> 1375</a> 1376<ul class="blockList"> 1377<li class="blockList"> 1378<h4>writeRaw</h4> 1379<pre>public void writeRaw(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text, 1380 int offset, 1381 int len) 1382 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1383 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1384<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String, int, int)">JsonGenerator</a></code></strong></div> 1385<div class="block">Method that will force generator to copy 1386 input text verbatim with <b>no</b> modifications (including 1387 that no escaping is done and no separators are added even 1388 if context [array, object] would otherwise require such). 1389 If such separators are desired, use 1390 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>JsonGenerator.writeRawValue(String)</code></a> instead. 1391<p> 1392 Note that not all generator implementations necessarily support 1393 such by-pass methods: those that do not will throw 1394 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</div> 1395<dl> 1396<dt><strong>Specified by:</strong></dt> 1397<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String, int, int)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1398<dt><span class="strong">Throws:</span></dt> 1399<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1400<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1401</li> 1402</ul> 1403<a name="writeRaw(char[], int, int)"> 1404<!-- --> 1405</a> 1406<ul class="blockList"> 1407<li class="blockList"> 1408<h4>writeRaw</h4> 1409<pre>public void writeRaw(char[] text, 1410 int offset, 1411 int len) 1412 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1413 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1414<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char[], int, int)">JsonGenerator</a></code></strong></div> 1415<div class="block">Method that will force generator to copy 1416 input text verbatim with <b>no</b> modifications (including 1417 that no escaping is done and no separators are added even 1418 if context [array, object] would otherwise require such). 1419 If such separators are desired, use 1420 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>JsonGenerator.writeRawValue(String)</code></a> instead. 1421<p> 1422 Note that not all generator implementations necessarily support 1423 such by-pass methods: those that do not will throw 1424 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</div> 1425<dl> 1426<dt><strong>Specified by:</strong></dt> 1427<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char[], int, int)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1428<dt><span class="strong">Throws:</span></dt> 1429<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1430<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1431</li> 1432</ul> 1433<a name="writeRaw(char)"> 1434<!-- --> 1435</a> 1436<ul class="blockList"> 1437<li class="blockList"> 1438<h4>writeRaw</h4> 1439<pre>public void writeRaw(char c) 1440 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1441 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1442<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char)">JsonGenerator</a></code></strong></div> 1443<div class="block">Method that will force generator to copy 1444 input text verbatim with <b>no</b> modifications (including 1445 that no escaping is done and no separators are added even 1446 if context [array, object] would otherwise require such). 1447 If such separators are desired, use 1448 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>JsonGenerator.writeRawValue(String)</code></a> instead. 1449<p> 1450 Note that not all generator implementations necessarily support 1451 such by-pass methods: those that do not will throw 1452 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</div> 1453<dl> 1454<dt><strong>Specified by:</strong></dt> 1455<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1456<dt><span class="strong">Throws:</span></dt> 1457<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1458<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1459</li> 1460</ul> 1461<a name="writeRawValue(java.lang.String)"> 1462<!-- --> 1463</a> 1464<ul class="blockList"> 1465<li class="blockList"> 1466<h4>writeRawValue</h4> 1467<pre>public void writeRawValue(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text) 1468 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1469 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1470<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)">JsonGenerator</a></code></strong></div> 1471<div class="block">Method that will force generator to copy 1472 input text verbatim without any modifications, but assuming 1473 it must constitute a single legal JSON value (number, string, 1474 boolean, null, Array or List). Assuming this, proper separators 1475 are added if and as needed (comma or colon), and generator 1476 state updated to reflect this.</div> 1477<dl> 1478<dt><strong>Specified by:</strong></dt> 1479<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)">writeRawValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1480<dt><span class="strong">Throws:</span></dt> 1481<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1482<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1483</li> 1484</ul> 1485<a name="writeRawValue(java.lang.String, int, int)"> 1486<!-- --> 1487</a> 1488<ul class="blockList"> 1489<li class="blockList"> 1490<h4>writeRawValue</h4> 1491<pre>public void writeRawValue(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text, 1492 int offset, 1493 int len) 1494 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1495 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1496<dl> 1497<dt><strong>Specified by:</strong></dt> 1498<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String, int, int)">writeRawValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1499<dt><span class="strong">Throws:</span></dt> 1500<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1501<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1502</li> 1503</ul> 1504<a name="writeRawValue(char[], int, int)"> 1505<!-- --> 1506</a> 1507<ul class="blockList"> 1508<li class="blockList"> 1509<h4>writeRawValue</h4> 1510<pre>public void writeRawValue(char[] text, 1511 int offset, 1512 int len) 1513 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1514 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1515<dl> 1516<dt><strong>Specified by:</strong></dt> 1517<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(char[], int, int)">writeRawValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1518<dt><span class="strong">Throws:</span></dt> 1519<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1520<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1521</li> 1522</ul> 1523<a name="writeNumber(int)"> 1524<!-- --> 1525</a> 1526<ul class="blockList"> 1527<li class="blockList"> 1528<h4>writeNumber</h4> 1529<pre>public void writeNumber(int i) 1530 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1531 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1532<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(int)">JsonGenerator</a></code></strong></div> 1533<div class="block">Method for outputting given value as Json number. 1534 Can be called in any context where a value is expected 1535 (Array value, Object field value, root-level value). 1536 Additional white space may be added around the value 1537 if pretty-printing is enabled.</div> 1538<dl> 1539<dt><strong>Specified by:</strong></dt> 1540<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(int)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1541<dt><span class="strong">Throws:</span></dt> 1542<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1543<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1544</li> 1545</ul> 1546<a name="writeNumber(long)"> 1547<!-- --> 1548</a> 1549<ul class="blockList"> 1550<li class="blockList"> 1551<h4>writeNumber</h4> 1552<pre>public void writeNumber(long l) 1553 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1554 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1555<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(long)">JsonGenerator</a></code></strong></div> 1556<div class="block">Method for outputting given value as Json number. 1557 Can be called in any context where a value is expected 1558 (Array value, Object field value, root-level value). 1559 Additional white space may be added around the value 1560 if pretty-printing is enabled.</div> 1561<dl> 1562<dt><strong>Specified by:</strong></dt> 1563<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(long)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1564<dt><span class="strong">Throws:</span></dt> 1565<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1566<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1567</li> 1568</ul> 1569<a name="writeNumber(double)"> 1570<!-- --> 1571</a> 1572<ul class="blockList"> 1573<li class="blockList"> 1574<h4>writeNumber</h4> 1575<pre>public void writeNumber(double d) 1576 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1577 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1578<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(double)">JsonGenerator</a></code></strong></div> 1579<div class="block">Method for outputting indicate Json numeric value. 1580 Can be called in any context where a value is expected 1581 (Array value, Object field value, root-level value). 1582 Additional white space may be added around the value 1583 if pretty-printing is enabled.</div> 1584<dl> 1585<dt><strong>Specified by:</strong></dt> 1586<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(double)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1587<dt><span class="strong">Throws:</span></dt> 1588<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1589<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1590</li> 1591</ul> 1592<a name="writeNumber(float)"> 1593<!-- --> 1594</a> 1595<ul class="blockList"> 1596<li class="blockList"> 1597<h4>writeNumber</h4> 1598<pre>public void writeNumber(float f) 1599 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1600 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1601<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(float)">JsonGenerator</a></code></strong></div> 1602<div class="block">Method for outputting indicate Json numeric value. 1603 Can be called in any context where a value is expected 1604 (Array value, Object field value, root-level value). 1605 Additional white space may be added around the value 1606 if pretty-printing is enabled.</div> 1607<dl> 1608<dt><strong>Specified by:</strong></dt> 1609<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(float)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1610<dt><span class="strong">Throws:</span></dt> 1611<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1612<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1613</li> 1614</ul> 1615<a name="writeNumber(java.math.BigDecimal)"> 1616<!-- --> 1617</a> 1618<ul class="blockList"> 1619<li class="blockList"> 1620<h4>writeNumber</h4> 1621<pre>public void writeNumber(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> dec) 1622 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1623 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1624<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigDecimal)">JsonGenerator</a></code></strong></div> 1625<div class="block">Method for outputting indicate Json numeric value. 1626 Can be called in any context where a value is expected 1627 (Array value, Object field value, root-level value). 1628 Additional white space may be added around the value 1629 if pretty-printing is enabled.</div> 1630<dl> 1631<dt><strong>Specified by:</strong></dt> 1632<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigDecimal)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1633<dt><span class="strong">Throws:</span></dt> 1634<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1635<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1636</li> 1637</ul> 1638<a name="writeNumber(java.math.BigInteger)"> 1639<!-- --> 1640</a> 1641<ul class="blockList"> 1642<li class="blockList"> 1643<h4>writeNumber</h4> 1644<pre>public void writeNumber(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> v) 1645 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1646 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1647<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigInteger)">JsonGenerator</a></code></strong></div> 1648<div class="block">Method for outputting given value as Json number. 1649 Can be called in any context where a value is expected 1650 (Array value, Object field value, root-level value). 1651 Additional white space may be added around the value 1652 if pretty-printing is enabled.</div> 1653<dl> 1654<dt><strong>Specified by:</strong></dt> 1655<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigInteger)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1656<dt><span class="strong">Throws:</span></dt> 1657<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1658<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1659</li> 1660</ul> 1661<a name="writeNumber(java.lang.String)"> 1662<!-- --> 1663</a> 1664<ul class="blockList"> 1665<li class="blockList"> 1666<h4>writeNumber</h4> 1667<pre>public void writeNumber(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encodedValue) 1668 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1669 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1670<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.lang.String)">JsonGenerator</a></code></strong></div> 1671<div class="block">Write method that can be used for custom numeric types that can 1672 not be (easily?) converted to "standard" Java number types. 1673 Because numbers are not surrounded by double quotes, regular 1674 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.writeString(java.lang.String)</code></a> method can not be used; nor 1675 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)"><code>JsonGenerator.writeRaw(java.lang.String)</code></a> because that does not properly handle 1676 value separators needed in Array or Object contexts. 1677<p> 1678 Note: because of lack of type safety, some generator 1679 implementations may not be able to implement this 1680 method. For example, if a binary json format is used, 1681 it may require type information for encoding; similarly 1682 for generator-wrappers around Java objects or Json nodes. 1683 If implementation does not implement this method, 1684 it needs to throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</div> 1685<dl> 1686<dt><strong>Specified by:</strong></dt> 1687<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.lang.String)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1688<dt><span class="strong">Throws:</span></dt> 1689<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1690<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1691</li> 1692</ul> 1693<a name="writeBoolean(boolean)"> 1694<!-- --> 1695</a> 1696<ul class="blockList"> 1697<li class="blockList"> 1698<h4>writeBoolean</h4> 1699<pre>public void writeBoolean(boolean state) 1700 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1701 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1702<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBoolean(boolean)">JsonGenerator</a></code></strong></div> 1703<div class="block">Method for outputting literal Json boolean value (one of 1704 Strings 'true' and 'false'). 1705 Can be called in any context where a value is expected 1706 (Array value, Object field value, root-level value). 1707 Additional white space may be added around the value 1708 if pretty-printing is enabled.</div> 1709<dl> 1710<dt><strong>Specified by:</strong></dt> 1711<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBoolean(boolean)">writeBoolean</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1712<dt><span class="strong">Throws:</span></dt> 1713<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1714<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1715</li> 1716</ul> 1717<a name="writeNull()"> 1718<!-- --> 1719</a> 1720<ul class="blockList"> 1721<li class="blockList"> 1722<h4>writeNull</h4> 1723<pre>public void writeNull() 1724 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1725 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1726<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNull()">JsonGenerator</a></code></strong></div> 1727<div class="block">Method for outputting literal Json null value. 1728 Can be called in any context where a value is expected 1729 (Array value, Object field value, root-level value). 1730 Additional white space may be added around the value 1731 if pretty-printing is enabled.</div> 1732<dl> 1733<dt><strong>Specified by:</strong></dt> 1734<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNull()">writeNull</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1735<dt><span class="strong">Throws:</span></dt> 1736<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1737<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1738</li> 1739</ul> 1740<a name="writeObject(java.lang.Object)"> 1741<!-- --> 1742</a> 1743<ul class="blockList"> 1744<li class="blockList"> 1745<h4>writeObject</h4> 1746<pre>public void writeObject(<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> value) 1747 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1748 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 1749<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)">JsonGenerator</a></code></strong></div> 1750<div class="block">Method for writing given Java object (POJO) as Json. 1751 Exactly how the object gets written depends on object 1752 in question (ad on codec, its configuration); for most 1753 beans it will result in Json object, but for others Json 1754 array, or String or numeric value (and for nulls, Json 1755 null literal. 1756 <b>NOTE</b>: generator must have its <b>object codec</b> 1757 set to non-null value; for generators created by a mapping 1758 factory this is the case, for others not.</div> 1759<dl> 1760<dt><strong>Specified by:</strong></dt> 1761<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)">writeObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1762<dt><span class="strong">Throws:</span></dt> 1763<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1764<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 1765</li> 1766</ul> 1767<a name="writeTree(org.codehaus.jackson.JsonNode)"> 1768<!-- --> 1769</a> 1770<ul class="blockList"> 1771<li class="blockList"> 1772<h4>writeTree</h4> 1773<pre>public void writeTree(<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> rootNode) 1774 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1775 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 1776<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeTree(org.codehaus.jackson.JsonNode)">JsonGenerator</a></code></strong></div> 1777<div class="block">Method for writing given JSON tree (expressed as a tree 1778 where given JsonNode is the root) using this generator. 1779 This will generally just call 1780 <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>JsonGenerator.writeObject(java.lang.Object)</code></a> with given node, but is added 1781 for convenience and to make code more explicit in cases 1782 where it deals specifically with trees.</div> 1783<dl> 1784<dt><strong>Specified by:</strong></dt> 1785<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeTree(org.codehaus.jackson.JsonNode)">writeTree</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1786<dt><span class="strong">Throws:</span></dt> 1787<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1788<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 1789</li> 1790</ul> 1791<a name="writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"> 1792<!-- --> 1793</a> 1794<ul class="blockList"> 1795<li class="blockList"> 1796<h4>writeBinary</h4> 1797<pre>public void writeBinary(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, 1798 byte[] data, 1799 int offset, 1800 int len) 1801 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1802 <a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1803<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)">JsonGenerator</a></code></strong></div> 1804<div class="block">Method that will output given chunk of binary data as base64 1805 encoded, as a complete String value (surrounded by double quotes). 1806 This method defaults 1807<p> 1808 Note: because Json Strings can not contain unescaped linefeeds, 1809 if linefeeds are included (as per last argument), they must be 1810 escaped. This adds overhead for decoding without improving 1811 readability. 1812 Alternatively if linefeeds are not included, 1813 resulting String value may violate the requirement of base64 1814 RFC which mandates line-length of 76 characters and use of 1815 linefeeds. However, all <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> implementations 1816 are required to accept such "long line base64"; as do 1817 typical production-level base64 decoders.</div> 1818<dl> 1819<dt><strong>Specified by:</strong></dt> 1820<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)">writeBinary</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1821<dt><span class="strong">Parameters:</span></dt><dd><code>b64variant</code> - Base64 variant to use: defines details such as 1822 whether padding is used (and if so, using which character); 1823 what is the maximum line length before adding linefeed, 1824 and also the underlying alphabet to use.</dd> 1825<dt><span class="strong">Throws:</span></dt> 1826<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1827<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1828</li> 1829</ul> 1830<a name="copyCurrentEvent(org.codehaus.jackson.JsonParser)"> 1831<!-- --> 1832</a> 1833<ul class="blockList"> 1834<li class="blockList"> 1835<h4>copyCurrentEvent</h4> 1836<pre>public void copyCurrentEvent(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp) 1837 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1838 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 1839<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentEvent(org.codehaus.jackson.JsonParser)">JsonGenerator</a></code></strong></div> 1840<div class="block">Method for copying contents of the current event that 1841 the given parser instance points to. 1842 Note that the method <b>will not</b> copy any other events, 1843 such as events contained within Json Array or Object structures. 1844<p> 1845 Calling this method will not advance the given 1846 parser, although it may cause parser to internally process 1847 more data (if it lazy loads contents of value events, for example)</div> 1848<dl> 1849<dt><strong>Specified by:</strong></dt> 1850<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentEvent(org.codehaus.jackson.JsonParser)">copyCurrentEvent</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1851<dt><span class="strong">Throws:</span></dt> 1852<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1853<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 1854</li> 1855</ul> 1856<a name="copyCurrentStructure(org.codehaus.jackson.JsonParser)"> 1857<!-- --> 1858</a> 1859<ul class="blockList"> 1860<li class="blockList"> 1861<h4>copyCurrentStructure</h4> 1862<pre>public void copyCurrentStructure(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp) 1863 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1864 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 1865<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentStructure(org.codehaus.jackson.JsonParser)">JsonGenerator</a></code></strong></div> 1866<div class="block">Method for copying contents of the current event 1867 <b>and following events that it encloses</b> 1868 the given parser instance points to. 1869<p> 1870 So what constitutes enclosing? Here is the list of 1871 events that have associated enclosed events that will 1872 get copied: 1873<ul> 1874 <li><a href="../../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a>: 1875 all events up to and including matching (closing) 1876 <a href="../../../../org/codehaus/jackson/JsonToken.html#END_OBJECT"><code>JsonToken.END_OBJECT</code></a> will be copied 1877 </li> 1878 <li><a href="../../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a> 1879 all events up to and including matching (closing) 1880 <a href="../../../../org/codehaus/jackson/JsonToken.html#END_ARRAY"><code>JsonToken.END_ARRAY</code></a> will be copied 1881 </li> 1882 <li><a href="../../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a> the logical value (which 1883 can consist of a single scalar value; or a sequence of related 1884 events for structured types (Json Arrays, Objects)) will 1885 be copied along with the name itself. So essentially the 1886 whole <b>field entry</b> (name and value) will be copied. 1887 </li> 1888</ul> 1889<p> 1890 After calling this method, parser will point to the 1891 <b>last event</b> that was copied. This will either be 1892 the event parser already pointed to (if there were no 1893 enclosed events), or the last enclosed event copied.</div> 1894<dl> 1895<dt><strong>Specified by:</strong></dt> 1896<dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentStructure(org.codehaus.jackson.JsonParser)">copyCurrentStructure</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> 1897<dt><span class="strong">Throws:</span></dt> 1898<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1899<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 1900</li> 1901</ul> 1902<a name="_append(org.codehaus.jackson.JsonToken)"> 1903<!-- --> 1904</a> 1905<ul class="blockList"> 1906<li class="blockList"> 1907<h4>_append</h4> 1908<pre>protected final void _append(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type)</pre> 1909</li> 1910</ul> 1911<a name="_append(org.codehaus.jackson.JsonToken, java.lang.Object)"> 1912<!-- --> 1913</a> 1914<ul class="blockList"> 1915<li class="blockList"> 1916<h4>_append</h4> 1917<pre>protected final void _append(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type, 1918 <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> value)</pre> 1919</li> 1920</ul> 1921<a name="_reportUnsupportedOperation()"> 1922<!-- --> 1923</a> 1924<ul class="blockListLast"> 1925<li class="blockList"> 1926<h4>_reportUnsupportedOperation</h4> 1927<pre>protected void _reportUnsupportedOperation()</pre> 1928</li> 1929</ul> 1930</li> 1931</ul> 1932</li> 1933</ul> 1934</div> 1935</div> 1936<!-- ========= END OF CLASS DATA ========= --> 1937<!-- ======= START OF BOTTOM NAVBAR ====== --> 1938<div class="bottomNav"><a name="navbar_bottom"> 1939<!-- --> 1940</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 1941<!-- --> 1942</a> 1943<ul class="navList" title="Navigation"> 1944<li><a href="../../../../overview-summary.html">Overview</a></li> 1945<li><a href="package-summary.html">Package</a></li> 1946<li class="navBarCell1Rev">Class</li> 1947<li><a href="class-use/TokenBuffer.html">Use</a></li> 1948<li><a href="package-tree.html">Tree</a></li> 1949<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 1950<li><a href="../../../../index-all.html">Index</a></li> 1951<li><a href="../../../../help-doc.html">Help</a></li> 1952</ul> 1953</div> 1954<div class="subNav"> 1955<ul class="navList"> 1956<li><a href="../../../../org/codehaus/jackson/util/TextBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 1957<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> 1958</ul> 1959<ul class="navList"> 1960<li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.html" target="_top">Frames</a></li> 1961<li><a href="TokenBuffer.html" target="_top">No Frames</a></li> 1962</ul> 1963<ul class="navList" id="allclasses_navbar_bottom"> 1964<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 1965</ul> 1966<div> 1967<script type="text/javascript"><!-- 1968 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 1969 if(window==top) { 1970 allClassesLink.style.display = "block"; 1971 } 1972 else { 1973 allClassesLink.style.display = "none"; 1974 } 1975 //--> 1976</script> 1977</div> 1978<div> 1979<ul class="subNavList"> 1980<li>Summary: </li> 1981<li><a href="#nested_class_summary">Nested</a> | </li> 1982<li><a href="#field_summary">Field</a> | </li> 1983<li><a href="#constructor_summary">Constr</a> | </li> 1984<li><a href="#method_summary">Method</a></li> 1985</ul> 1986<ul class="subNavList"> 1987<li>Detail: </li> 1988<li><a href="#field_detail">Field</a> | </li> 1989<li><a href="#constructor_detail">Constr</a> | </li> 1990<li><a href="#method_detail">Method</a></li> 1991</ul> 1992</div> 1993<a name="skip-navbar_bottom"> 1994<!-- --> 1995</a></div> 1996<!-- ======== END OF BOTTOM NAVBAR ======= --> 1997</body> 1998</html> 1999