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:20 PDT 2013 --> 6<title>JsonGenerator (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="JsonGenerator (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/JsonGenerator.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/JsonGenerationException.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../index.html?org/codehaus/jackson/JsonGenerator.html" target="_top">Frames</a></li> 44<li><a href="JsonGenerator.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</div> 83<h2 title="Class JsonGenerator" class="title">Class JsonGenerator</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>org.codehaus.jackson.JsonGenerator</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<dl> 98<dt>All Implemented Interfaces:</dt> 99<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> 100</dl> 101<dl> 102<dt>Direct Known Subclasses:</dt> 103<dd><a href="../../../org/codehaus/jackson/impl/JsonGeneratorBase.html" title="class in org.codehaus.jackson.impl">JsonGeneratorBase</a>, <a href="../../../org/codehaus/jackson/util/JsonGeneratorDelegate.html" title="class in org.codehaus.jackson.util">JsonGeneratorDelegate</a>, <a href="../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util">TokenBuffer</a></dd> 104</dl> 105<hr> 106<br> 107<pre>public abstract class <span class="strong">JsonGenerator</span> 108extends <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> 109implements <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="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></pre> 110<div class="block">Base class that defines public API for writing JSON content. 111 Instances are created using factory methods of 112 a <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> instance.</div> 113<dl><dt><span class="strong">Author:</span></dt> 114 <dd>Tatu Saloranta</dd></dl> 115</li> 116</ul> 117</div> 118<div class="summary"> 119<ul class="blockList"> 120<li class="blockList"> 121<!-- ======== NESTED CLASS SUMMARY ======== --> 122<ul class="blockList"> 123<li class="blockList"><a name="nested_class_summary"> 124<!-- --> 125</a> 126<h3>Nested Class Summary</h3> 127<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 128<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 129<tr> 130<th class="colFirst" scope="col">Modifier and Type</th> 131<th class="colLast" scope="col">Class and Description</th> 132</tr> 133<tr class="altColor"> 134<td class="colFirst"><code>static class </code></td> 135<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a></strong></code> 136<div class="block">Enumeration that defines all togglable features for generators.</div> 137</td> 138</tr> 139</table> 140</li> 141</ul> 142<!-- =========== FIELD SUMMARY =========== --> 143<ul class="blockList"> 144<li class="blockList"><a name="field_summary"> 145<!-- --> 146</a> 147<h3>Field Summary</h3> 148<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 149<caption><span>Fields</span><span class="tabEnd"> </span></caption> 150<tr> 151<th class="colFirst" scope="col">Modifier and Type</th> 152<th class="colLast" scope="col">Field and Description</th> 153</tr> 154<tr class="altColor"> 155<td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a></code></td> 156<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#_cfgPrettyPrinter">_cfgPrettyPrinter</a></strong></code> 157<div class="block">Object that handles pretty-printing (usually additional 158 white space to make results more human-readable) during 159 output.</div> 160</td> 161</tr> 162</table> 163</li> 164</ul> 165<!-- ======== CONSTRUCTOR SUMMARY ======== --> 166<ul class="blockList"> 167<li class="blockList"><a name="constructor_summary"> 168<!-- --> 169</a> 170<h3>Constructor Summary</h3> 171<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 172<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 173<tr> 174<th class="colFirst" scope="col">Modifier</th> 175<th class="colLast" scope="col">Constructor and Description</th> 176</tr> 177<tr class="altColor"> 178<td class="colFirst"><code>protected </code></td> 179<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#JsonGenerator()">JsonGenerator</a></strong>()</code> </td> 180</tr> 181</table> 182</li> 183</ul> 184<!-- ========== METHOD SUMMARY =========== --> 185<ul class="blockList"> 186<li class="blockList"><a name="method_summary"> 187<!-- --> 188</a> 189<h3>Method Summary</h3> 190<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 191<caption><span>Methods</span><span class="tabEnd"> </span></caption> 192<tr> 193<th class="colFirst" scope="col">Modifier and Type</th> 194<th class="colLast" scope="col">Method and Description</th> 195</tr> 196<tr class="altColor"> 197<td class="colFirst"><code>boolean</code></td> 198<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#canUseSchema(org.codehaus.jackson.FormatSchema)">canUseSchema</a></strong>(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</code> 199<div class="block">Method that can be used to verify that given schema can be used with 200 this generator (using <a href="../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)"><code>setSchema(org.codehaus.jackson.FormatSchema)</code></a>).</div> 201</td> 202</tr> 203<tr class="rowColor"> 204<td class="colFirst"><code>abstract void</code></td> 205<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#close()">close</a></strong>()</code> 206<div class="block">Method called to close this generator, so that no more content 207 can be written.</div> 208</td> 209</tr> 210<tr class="altColor"> 211<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 212<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)">configure</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 213 boolean state)</code> 214<div class="block">Method for enabling or disabling specified feature: 215 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> 216</td> 217</tr> 218<tr class="rowColor"> 219<td class="colFirst"><code>abstract void</code></td> 220<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 221<div class="block">Method for copying contents of the current event that 222 the given parser instance points to.</div> 223</td> 224</tr> 225<tr class="altColor"> 226<td class="colFirst"><code>abstract void</code></td> 227<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 228<div class="block">Method for copying contents of the current event 229 <b>and following events that it encloses</b> 230 the given parser instance points to.</div> 231</td> 232</tr> 233<tr class="rowColor"> 234<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 235<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 236<div class="block">Method for disabling specified features 237 (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> 238</td> 239</tr> 240<tr class="altColor"> 241<td class="colFirst"><code>void</code></td> 242<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#disableFeature(org.codehaus.jackson.JsonGenerator.Feature)">disableFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> 243<div class="block"><strong>Deprecated.</strong> 244<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)"><code>disable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> 245</div> 246</td> 247</tr> 248<tr class="rowColor"> 249<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 250<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 251<div class="block">Method for enabling specified parser features: 252 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> 253</td> 254</tr> 255<tr class="altColor"> 256<td class="colFirst"><code>void</code></td> 257<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#enableFeature(org.codehaus.jackson.JsonGenerator.Feature)">enableFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> 258<div class="block"><strong>Deprecated.</strong> 259<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)"><code>enable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> 260</div> 261</td> 262</tr> 263<tr class="rowColor"> 264<td class="colFirst"><code>abstract void</code></td> 265<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#flush()">flush</a></strong>()</code> 266<div class="block">Method called to flush any buffered content to the underlying 267 target (output stream, writer), and to flush the target itself 268 as well.</div> 269</td> 270</tr> 271<tr class="altColor"> 272<td class="colFirst"><code><a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a></code></td> 273<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getCharacterEscapes()">getCharacterEscapes</a></strong>()</code> 274<div class="block">Method for accessing custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s 275 it creates.</div> 276</td> 277</tr> 278<tr class="rowColor"> 279<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> 280<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getCodec()">getCodec</a></strong>()</code> 281<div class="block">Method for accessing the object used for writing Java 282 object as Json content 283 (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> 284</td> 285</tr> 286<tr class="altColor"> 287<td class="colFirst"><code>int</code></td> 288<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getHighestEscapedChar()">getHighestEscapedChar</a></strong>()</code> 289<div class="block">Accessor method for testing what is the highest unescaped character 290 configured for this generator.</div> 291</td> 292</tr> 293<tr class="rowColor"> 294<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a></code></td> 295<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getOutputContext()">getOutputContext</a></strong>()</code> </td> 296</tr> 297<tr class="altColor"> 298<td class="colFirst"><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></td> 299<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getOutputTarget()">getOutputTarget</a></strong>()</code> 300<div class="block">Method that can be used to get access to object that is used 301 as target for generated output; this is usually either 302 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a> or <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>, depending on what 303 generator was constructed with.</div> 304</td> 305</tr> 306<tr class="rowColor"> 307<td class="colFirst"><code>abstract boolean</code></td> 308<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#isClosed()">isClosed</a></strong>()</code> 309<div class="block">Method that can be called to determine whether this generator 310 is closed or not.</div> 311</td> 312</tr> 313<tr class="altColor"> 314<td class="colFirst"><code>abstract boolean</code></td> 315<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 316<div class="block">Method for checking whether given feature is enabled.</div> 317</td> 318</tr> 319<tr class="rowColor"> 320<td class="colFirst"><code>boolean</code></td> 321<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isFeatureEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> 322<div class="block"><strong>Deprecated.</strong> 323<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"><code>isEnabled(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> 324</div> 325</td> 326</tr> 327<tr class="altColor"> 328<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 329<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setCharacterEscapes(org.codehaus.jackson.io.CharacterEscapes)">setCharacterEscapes</a></strong>(<a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> esc)</code> 330<div class="block">Method for defining custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s 331 it creates.</div> 332</td> 333</tr> 334<tr class="rowColor"> 335<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 336<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 337<div class="block">Method that can be called to set or reset the object to 338 use for writing Java objects as JsonContent 339 (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> 340</td> 341</tr> 342<tr class="altColor"> 343<td class="colFirst"><code>void</code></td> 344<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)">setFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 345 boolean state)</code> 346<div class="block"><strong>Deprecated.</strong> 347<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"><code>configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)</code></a> instead</i></div> 348</div> 349</td> 350</tr> 351<tr class="rowColor"> 352<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 353<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setHighestNonEscapedChar(int)">setHighestNonEscapedChar</a></strong>(int charCode)</code> 354<div class="block">Method that can be called to request that generator escapes 355 all character codes above specified code point (if positive value); 356 or, to not escape any characters except for ones that must be 357 escaped for the data format (if -1).</div> 358</td> 359</tr> 360<tr class="altColor"> 361<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> 362<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setPrettyPrinter(org.codehaus.jackson.PrettyPrinter)">setPrettyPrinter</a></strong>(<a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a> pp)</code> 363<div class="block">Method for setting a custom pretty printer, which is usually 364 used to add indentation for improved human readability.</div> 365</td> 366</tr> 367<tr class="rowColor"> 368<td class="colFirst"><code>void</code></td> 369<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)">setSchema</a></strong>(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</code> 370<div class="block">Method to call to make this generator use specified schema.</div> 371</td> 372</tr> 373<tr class="altColor"> 374<td class="colFirst"><code>abstract <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/JsonGenerator.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="rowColor"> 382<td class="colFirst"><code><a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td> 383<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#version()">version</a></strong>()</code> 384<div class="block">Method called to detect version of the component that implements this interface; 385 returned version should never be null, but may return specific "not available" 386 instance (see <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a> for details).</div> 387</td> 388</tr> 389<tr class="altColor"> 390<td class="colFirst"><code>void</code></td> 391<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeArrayFieldStart(java.lang.String)">writeArrayFieldStart</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> fieldName)</code> 392<div class="block">Convenience method for outputting a field entry ("member") 393 (that will contain a JSON Array value), and the START_ARRAY marker.</div> 394</td> 395</tr> 396<tr class="rowColor"> 397<td class="colFirst"><code>abstract void</code></td> 398<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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, 399 byte[] data, 400 int offset, 401 int len)</code> 402<div class="block">Method that will output given chunk of binary data as base64 403 encoded, as a complete String value (surrounded by double quotes).</div> 404</td> 405</tr> 406<tr class="altColor"> 407<td class="colFirst"><code>void</code></td> 408<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[])">writeBinary</a></strong>(byte[] data)</code> 409<div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, 410 but assumes default to using the Jackson default Base64 variant 411 (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>).</div> 412</td> 413</tr> 414<tr class="rowColor"> 415<td class="colFirst"><code>void</code></td> 416<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[], int, int)">writeBinary</a></strong>(byte[] data, 417 int offset, 418 int len)</code> 419<div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, 420 but default to using the Jackson default Base64 variant 421 (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>).</div> 422</td> 423</tr> 424<tr class="altColor"> 425<td class="colFirst"><code>void</code></td> 426<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinaryField(java.lang.String, byte[])">writeBinaryField</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> fieldName, 427 byte[] data)</code> 428<div class="block">Convenience method for outputting a field entry ("member") 429 that contains specified data in base64-encoded form.</div> 430</td> 431</tr> 432<tr class="rowColor"> 433<td class="colFirst"><code>abstract void</code></td> 434<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBoolean(boolean)">writeBoolean</a></strong>(boolean state)</code> 435<div class="block">Method for outputting literal Json boolean value (one of 436 Strings 'true' and 'false').</div> 437</td> 438</tr> 439<tr class="altColor"> 440<td class="colFirst"><code>void</code></td> 441<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBooleanField(java.lang.String, boolean)">writeBooleanField</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> fieldName, 442 boolean value)</code> 443<div class="block">Convenience method for outputting a field entry ("member") 444 that has a boolean value.</div> 445</td> 446</tr> 447<tr class="rowColor"> 448<td class="colFirst"><code>abstract void</code></td> 449<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeEndArray()">writeEndArray</a></strong>()</code> 450<div class="block">Method for writing closing marker of a JSON Array value 451 (character ']'; plus possible white space decoration 452 if pretty-printing is enabled).</div> 453</td> 454</tr> 455<tr class="altColor"> 456<td class="colFirst"><code>abstract void</code></td> 457<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeEndObject()">writeEndObject</a></strong>()</code> 458<div class="block">Method for writing closing marker of a JSON Object value 459 (character '}'; plus possible white space decoration 460 if pretty-printing is enabled).</div> 461</td> 462</tr> 463<tr class="rowColor"> 464<td class="colFirst"><code>void</code></td> 465<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 466<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference 467 being that it may perform better as some of processing (such as 468 quoting of certain characters, or encoding into external encoding 469 if supported by generator) can be done just once and reused for 470 later calls.</div> 471</td> 472</tr> 473<tr class="altColor"> 474<td class="colFirst"><code>void</code></td> 475<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 476<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference 477 being that it may perform better as some of processing (such as 478 quoting of certain characters, or encoding into external encoding 479 if supported by generator) can be done just once and reused for 480 later calls.</div> 481</td> 482</tr> 483<tr class="rowColor"> 484<td class="colFirst"><code>abstract void</code></td> 485<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 486<div class="block">Method for writing a field name (JSON String surrounded by 487 double quotes: syntactically identical to a JSON String value), 488 possibly decorated by white space if pretty-printing is enabled.</div> 489</td> 490</tr> 491<tr class="altColor"> 492<td class="colFirst"><code>abstract void</code></td> 493<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNull()">writeNull</a></strong>()</code> 494<div class="block">Method for outputting literal Json null value.</div> 495</td> 496</tr> 497<tr class="rowColor"> 498<td class="colFirst"><code>void</code></td> 499<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNullField(java.lang.String)">writeNullField</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> fieldName)</code> 500<div class="block">Convenience method for outputting a field entry ("member") 501 that has JSON literal value null.</div> 502</td> 503</tr> 504<tr class="altColor"> 505<td class="colFirst"><code>abstract void</code></td> 506<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 507<div class="block">Method for outputting indicate Json numeric value.</div> 508</td> 509</tr> 510<tr class="rowColor"> 511<td class="colFirst"><code>abstract void</code></td> 512<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 513<div class="block">Method for outputting given value as Json number.</div> 514</td> 515</tr> 516<tr class="altColor"> 517<td class="colFirst"><code>abstract void</code></td> 518<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(double)">writeNumber</a></strong>(double d)</code> 519<div class="block">Method for outputting indicate Json numeric value.</div> 520</td> 521</tr> 522<tr class="rowColor"> 523<td class="colFirst"><code>abstract void</code></td> 524<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(float)">writeNumber</a></strong>(float f)</code> 525<div class="block">Method for outputting indicate Json numeric value.</div> 526</td> 527</tr> 528<tr class="altColor"> 529<td class="colFirst"><code>abstract void</code></td> 530<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(int)">writeNumber</a></strong>(int v)</code> 531<div class="block">Method for outputting given value as Json number.</div> 532</td> 533</tr> 534<tr class="rowColor"> 535<td class="colFirst"><code>abstract void</code></td> 536<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(long)">writeNumber</a></strong>(long v)</code> 537<div class="block">Method for outputting given value as Json number.</div> 538</td> 539</tr> 540<tr class="altColor"> 541<td class="colFirst"><code>abstract void</code></td> 542<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 543<div class="block">Write method that can be used for custom numeric types that can 544 not be (easily?) converted to "standard" Java number types.</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/JsonGenerator.html#writeNumberField(java.lang.String, java.math.BigDecimal)">writeNumberField</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> fieldName, 550 <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> value)</code> 551<div class="block">Convenience method for outputting a field entry ("member") 552 that has the specified numeric value.</div> 553</td> 554</tr> 555<tr class="altColor"> 556<td class="colFirst"><code>void</code></td> 557<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, double)">writeNumberField</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> fieldName, 558 double value)</code> 559<div class="block">Convenience method for outputting a field entry ("member") 560 that has the specified numeric value.</div> 561</td> 562</tr> 563<tr class="rowColor"> 564<td class="colFirst"><code>void</code></td> 565<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, float)">writeNumberField</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> fieldName, 566 float value)</code> 567<div class="block">Convenience method for outputting a field entry ("member") 568 that has the specified numeric value.</div> 569</td> 570</tr> 571<tr class="altColor"> 572<td class="colFirst"><code>void</code></td> 573<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, int)">writeNumberField</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> fieldName, 574 int value)</code> 575<div class="block">Convenience method for outputting a field entry ("member") 576 that has the specified numeric value.</div> 577</td> 578</tr> 579<tr class="rowColor"> 580<td class="colFirst"><code>void</code></td> 581<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, long)">writeNumberField</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> fieldName, 582 long value)</code> 583<div class="block">Convenience method for outputting a field entry ("member") 584 that has the specified numeric value.</div> 585</td> 586</tr> 587<tr class="altColor"> 588<td class="colFirst"><code>abstract void</code></td> 589<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> pojo)</code> 590<div class="block">Method for writing given Java object (POJO) as Json.</div> 591</td> 592</tr> 593<tr class="rowColor"> 594<td class="colFirst"><code>void</code></td> 595<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObjectField(java.lang.String, java.lang.Object)">writeObjectField</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> fieldName, 596 <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> pojo)</code> 597<div class="block">Convenience method for outputting a field entry ("member") 598 that has contents of specific Java object as its value.</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/JsonGenerator.html#writeObjectFieldStart(java.lang.String)">writeObjectFieldStart</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> fieldName)</code> 604<div class="block">Convenience method for outputting a field entry ("member") 605 (that will contain a JSON Object value), and the START_OBJECT marker.</div> 606</td> 607</tr> 608<tr class="rowColor"> 609<td class="colFirst"><code>abstract void</code></td> 610<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char)">writeRaw</a></strong>(char c)</code> 611<div class="block">Method that will force generator to copy 612 input text verbatim with <b>no</b> modifications (including 613 that no escaping is done and no separators are added even 614 if context [array, object] would otherwise require such).</div> 615</td> 616</tr> 617<tr class="altColor"> 618<td class="colFirst"><code>abstract void</code></td> 619<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char[], int, int)">writeRaw</a></strong>(char[] text, 620 int offset, 621 int len)</code> 622<div class="block">Method that will force generator to copy 623 input text verbatim with <b>no</b> modifications (including 624 that no escaping is done and no separators are added even 625 if context [array, object] would otherwise require such).</div> 626</td> 627</tr> 628<tr class="rowColor"> 629<td class="colFirst"><code>abstract void</code></td> 630<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 631<div class="block">Method that will force generator to copy 632 input text verbatim with <b>no</b> modifications (including 633 that no escaping is done and no separators are added even 634 if context [array, object] would otherwise require such).</div> 635</td> 636</tr> 637<tr class="altColor"> 638<td class="colFirst"><code>abstract void</code></td> 639<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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, 640 int offset, 641 int len)</code> 642<div class="block">Method that will force generator to copy 643 input text verbatim with <b>no</b> modifications (including 644 that no escaping is done and no separators are added even 645 if context [array, object] would otherwise require such).</div> 646</td> 647</tr> 648<tr class="rowColor"> 649<td class="colFirst"><code>abstract void</code></td> 650<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawUTF8String(byte[], int, int)">writeRawUTF8String</a></strong>(byte[] text, 651 int offset, 652 int length)</code> 653<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as 654 its input a UTF-8 encoded String that is to be output as-is, without additional 655 escaping (type of which depends on data format; backslashes for JSON).</div> 656</td> 657</tr> 658<tr class="altColor"> 659<td class="colFirst"><code>abstract void</code></td> 660<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(char[], int, int)">writeRawValue</a></strong>(char[] text, 661 int offset, 662 int len)</code> </td> 663</tr> 664<tr class="rowColor"> 665<td class="colFirst"><code>abstract void</code></td> 666<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 667<div class="block">Method that will force generator to copy 668 input text verbatim without any modifications, but assuming 669 it must constitute a single legal JSON value (number, string, 670 boolean, null, Array or List).</div> 671</td> 672</tr> 673<tr class="altColor"> 674<td class="colFirst"><code>abstract void</code></td> 675<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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, 676 int offset, 677 int len)</code> </td> 678</tr> 679<tr class="rowColor"> 680<td class="colFirst"><code>abstract void</code></td> 681<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeStartArray()">writeStartArray</a></strong>()</code> 682<div class="block">Method for writing starting marker of a JSON Array value 683 (character '['; plus possible white space decoration 684 if pretty-printing is enabled).</div> 685</td> 686</tr> 687<tr class="altColor"> 688<td class="colFirst"><code>abstract void</code></td> 689<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeStartObject()">writeStartObject</a></strong>()</code> 690<div class="block">Method for writing starting marker of a JSON Object value 691 (character '{'; plus possible white space decoration 692 if pretty-printing is enabled).</div> 693</td> 694</tr> 695<tr class="rowColor"> 696<td class="colFirst"><code>abstract void</code></td> 697<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(char[], int, int)">writeString</a></strong>(char[] text, 698 int offset, 699 int len)</code> 700<div class="block">Method for outputting a String value.</div> 701</td> 702</tr> 703<tr class="altColor"> 704<td class="colFirst"><code>void</code></td> 705<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 706<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a>, but that takes 707 <a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><code>SerializableString</code></a> which can make this potentially 708 more efficient to call as generator may be able to reuse 709 quoted and/or encoded representation.</div> 710</td> 711</tr> 712<tr class="rowColor"> 713<td class="colFirst"><code>abstract void</code></td> 714<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 715<div class="block">Method for outputting a String value.</div> 716</td> 717</tr> 718<tr class="altColor"> 719<td class="colFirst"><code>void</code></td> 720<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeStringField(java.lang.String, java.lang.String)">writeStringField</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> fieldName, 721 <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> value)</code> 722<div class="block">Convenience method for outputting a field entry ("member") 723 that has a String value.</div> 724</td> 725</tr> 726<tr class="rowColor"> 727<td class="colFirst"><code>abstract void</code></td> 728<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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> 729<div class="block">Method for writing given JSON tree (expressed as a tree 730 where given JsonNode is the root) using this generator.</div> 731</td> 732</tr> 733<tr class="altColor"> 734<td class="colFirst"><code>abstract void</code></td> 735<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeUTF8String(byte[], int, int)">writeUTF8String</a></strong>(byte[] text, 736 int offset, 737 int length)</code> 738<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as its input 739 a UTF-8 encoded String which has <b>not</b> been escaped using whatever 740 escaping scheme data format requires (for JSON that is backslash-escaping 741 for control characters and double-quotes; for other formats something else).</div> 742</td> 743</tr> 744</table> 745<ul class="blockList"> 746<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 747<!-- --> 748</a> 749<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> 750<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 751</ul> 752</li> 753</ul> 754</li> 755</ul> 756</div> 757<div class="details"> 758<ul class="blockList"> 759<li class="blockList"> 760<!-- ============ FIELD DETAIL =========== --> 761<ul class="blockList"> 762<li class="blockList"><a name="field_detail"> 763<!-- --> 764</a> 765<h3>Field Detail</h3> 766<a name="_cfgPrettyPrinter"> 767<!-- --> 768</a> 769<ul class="blockListLast"> 770<li class="blockList"> 771<h4>_cfgPrettyPrinter</h4> 772<pre>protected <a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a> _cfgPrettyPrinter</pre> 773<div class="block">Object that handles pretty-printing (usually additional 774 white space to make results more human-readable) during 775 output. If null, no pretty-printing is done.</div> 776</li> 777</ul> 778</li> 779</ul> 780<!-- ========= CONSTRUCTOR DETAIL ======== --> 781<ul class="blockList"> 782<li class="blockList"><a name="constructor_detail"> 783<!-- --> 784</a> 785<h3>Constructor Detail</h3> 786<a name="JsonGenerator()"> 787<!-- --> 788</a> 789<ul class="blockListLast"> 790<li class="blockList"> 791<h4>JsonGenerator</h4> 792<pre>protected JsonGenerator()</pre> 793</li> 794</ul> 795</li> 796</ul> 797<!-- ============ METHOD DETAIL ========== --> 798<ul class="blockList"> 799<li class="blockList"><a name="method_detail"> 800<!-- --> 801</a> 802<h3>Method Detail</h3> 803<a name="setSchema(org.codehaus.jackson.FormatSchema)"> 804<!-- --> 805</a> 806<ul class="blockList"> 807<li class="blockList"> 808<h4>setSchema</h4> 809<pre>public void setSchema(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</pre> 810<div class="block">Method to call to make this generator use specified schema. 811 Method must be called before generating any content, right after instance 812 has been created. 813 Note that not all generators support schemas; and those that do usually only 814 accept specific types of schemas: ones defined for data format this generator 815 produces. 816<p> 817 If generator does not support specified schema, <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> 818 is thrown.</div> 819<dl><dt><span class="strong">Parameters:</span></dt><dd><code>schema</code> - Schema to use</dd> 820<dt><span class="strong">Throws:</span></dt> 821<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code> - if generator does not support schema</dd><dt><span class="strong">Since:</span></dt> 822 <dd>1.8</dd></dl> 823</li> 824</ul> 825<a name="canUseSchema(org.codehaus.jackson.FormatSchema)"> 826<!-- --> 827</a> 828<ul class="blockList"> 829<li class="blockList"> 830<h4>canUseSchema</h4> 831<pre>public boolean canUseSchema(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</pre> 832<div class="block">Method that can be used to verify that given schema can be used with 833 this generator (using <a href="../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)"><code>setSchema(org.codehaus.jackson.FormatSchema)</code></a>).</div> 834<dl><dt><span class="strong">Parameters:</span></dt><dd><code>schema</code> - Schema to check</dd> 835<dt><span class="strong">Returns:</span></dt><dd>True if this generator can use given schema; false if not</dd><dt><span class="strong">Since:</span></dt> 836 <dd>1.8</dd></dl> 837</li> 838</ul> 839<a name="version()"> 840<!-- --> 841</a> 842<ul class="blockList"> 843<li class="blockList"> 844<h4>version</h4> 845<pre>public <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> version()</pre> 846<div class="block"><strong>Description copied from interface: <code><a href="../../../org/codehaus/jackson/Versioned.html#version()">Versioned</a></code></strong></div> 847<div class="block">Method called to detect version of the component that implements this interface; 848 returned version should never be null, but may return specific "not available" 849 instance (see <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a> for details).</div> 850<dl> 851<dt><strong>Specified by:</strong></dt> 852<dd><code><a href="../../../org/codehaus/jackson/Versioned.html#version()">version</a></code> in interface <code><a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></code></dd> 853<dt><span class="strong">Since:</span></dt> 854 <dd>1.6</dd></dl> 855</li> 856</ul> 857<a name="getOutputTarget()"> 858<!-- --> 859</a> 860<ul class="blockList"> 861<li class="blockList"> 862<h4>getOutputTarget</h4> 863<pre>public <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> getOutputTarget()</pre> 864<div class="block">Method that can be used to get access to object that is used 865 as target for generated output; this is usually either 866 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a> or <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>, depending on what 867 generator was constructed with. 868 Note that returned value may be null in some cases; including 869 case where implementation does not want to exposed raw 870 source to caller. 871 In cases where output has been decorated, object returned here 872 is the decorated version; this allows some level of interaction 873 between users of generator and decorator object. 874<p> 875 In general use of this accessor should be considered as 876 "last effort", i.e. only used if no other mechanism is applicable.</div> 877<dl><dt><span class="strong">Since:</span></dt> 878 <dd>1.8</dd></dl> 879</li> 880</ul> 881<a name="enable(org.codehaus.jackson.JsonGenerator.Feature)"> 882<!-- --> 883</a> 884<ul class="blockList"> 885<li class="blockList"> 886<h4>enable</h4> 887<pre>public abstract <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> 888<div class="block">Method for enabling specified parser features: 889 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> 890<dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd><dt><span class="strong">Since:</span></dt> 891 <dd>1.2</dd></dl> 892</li> 893</ul> 894<a name="disable(org.codehaus.jackson.JsonGenerator.Feature)"> 895<!-- --> 896</a> 897<ul class="blockList"> 898<li class="blockList"> 899<h4>disable</h4> 900<pre>public abstract <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> 901<div class="block">Method for disabling specified features 902 (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> 903<dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd><dt><span class="strong">Since:</span></dt> 904 <dd>1.2</dd></dl> 905</li> 906</ul> 907<a name="configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> 908<!-- --> 909</a> 910<ul class="blockList"> 911<li class="blockList"> 912<h4>configure</h4> 913<pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> configure(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 914 boolean state)</pre> 915<div class="block">Method for enabling or disabling specified feature: 916 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> 917<dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd><dt><span class="strong">Since:</span></dt> 918 <dd>1.2</dd></dl> 919</li> 920</ul> 921<a name="isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> 922<!-- --> 923</a> 924<ul class="blockList"> 925<li class="blockList"> 926<h4>isEnabled</h4> 927<pre>public abstract boolean isEnabled(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 928<div class="block">Method for checking whether given feature is enabled. 929 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> 930<dl><dt><span class="strong">Since:</span></dt> 931 <dd>1.2</dd></dl> 932</li> 933</ul> 934<a name="setCodec(org.codehaus.jackson.ObjectCodec)"> 935<!-- --> 936</a> 937<ul class="blockList"> 938<li class="blockList"> 939<h4>setCodec</h4> 940<pre>public abstract <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> 941<div class="block">Method that can be called to set or reset the object to 942 use for writing Java objects as JsonContent 943 (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> 944<dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 945</li> 946</ul> 947<a name="getCodec()"> 948<!-- --> 949</a> 950<ul class="blockList"> 951<li class="blockList"> 952<h4>getCodec</h4> 953<pre>public abstract <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> 954<div class="block">Method for accessing the object used for writing Java 955 object as Json content 956 (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> 957</li> 958</ul> 959<a name="enableFeature(org.codehaus.jackson.JsonGenerator.Feature)"> 960<!-- --> 961</a> 962<ul class="blockList"> 963<li class="blockList"> 964<h4>enableFeature</h4> 965<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 966public void enableFeature(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 967<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)"><code>enable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> 968</li> 969</ul> 970<a name="disableFeature(org.codehaus.jackson.JsonGenerator.Feature)"> 971<!-- --> 972</a> 973<ul class="blockList"> 974<li class="blockList"> 975<h4>disableFeature</h4> 976<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 977public void disableFeature(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 978<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)"><code>disable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> 979</li> 980</ul> 981<a name="setFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> 982<!-- --> 983</a> 984<ul class="blockList"> 985<li class="blockList"> 986<h4>setFeature</h4> 987<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 988public void setFeature(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, 989 boolean state)</pre> 990<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"><code>configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)</code></a> instead</i></div> 991</li> 992</ul> 993<a name="isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> 994<!-- --> 995</a> 996<ul class="blockList"> 997<li class="blockList"> 998<h4>isFeatureEnabled</h4> 999<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 1000public boolean isFeatureEnabled(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> 1001<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"><code>isEnabled(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> 1002</li> 1003</ul> 1004<a name="setPrettyPrinter(org.codehaus.jackson.PrettyPrinter)"> 1005<!-- --> 1006</a> 1007<ul class="blockList"> 1008<li class="blockList"> 1009<h4>setPrettyPrinter</h4> 1010<pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setPrettyPrinter(<a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a> pp)</pre> 1011<div class="block">Method for setting a custom pretty printer, which is usually 1012 used to add indentation for improved human readability. 1013 By default, generator does not do pretty printing. 1014<p> 1015 To use the default pretty printer that comes with core 1016 Jackson distribution, call <a href="../../../org/codehaus/jackson/JsonGenerator.html#useDefaultPrettyPrinter()"><code>useDefaultPrettyPrinter()</code></a> 1017 instead.</div> 1018<dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 1019</li> 1020</ul> 1021<a name="useDefaultPrettyPrinter()"> 1022<!-- --> 1023</a> 1024<ul class="blockList"> 1025<li class="blockList"> 1026<h4>useDefaultPrettyPrinter</h4> 1027<pre>public abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> useDefaultPrettyPrinter()</pre> 1028<div class="block">Convenience method for enabling pretty-printing using 1029 the default pretty printer 1030 (<a href="../../../org/codehaus/jackson/util/DefaultPrettyPrinter.html" title="class in org.codehaus.jackson.util"><code>DefaultPrettyPrinter</code></a>).</div> 1031<dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> 1032</li> 1033</ul> 1034<a name="setHighestNonEscapedChar(int)"> 1035<!-- --> 1036</a> 1037<ul class="blockList"> 1038<li class="blockList"> 1039<h4>setHighestNonEscapedChar</h4> 1040<pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setHighestNonEscapedChar(int charCode)</pre> 1041<div class="block">Method that can be called to request that generator escapes 1042 all character codes above specified code point (if positive value); 1043 or, to not escape any characters except for ones that must be 1044 escaped for the data format (if -1). 1045 To force escaping of all non-ASCII characters, for example, 1046 this method would be called with value of 127. 1047<p> 1048 Note that generators are NOT required to support setting of value 1049 higher than 127, because there are other ways to affect quoting 1050 (or lack thereof) of character codes between 0 and 127. 1051 Not all generators support concept of escaping, either; if so, 1052 calling this method will have no effect. 1053<p> 1054 Default implementation does nothing; sub-classes need to redefine 1055 it according to rules of supported data format.</div> 1056<dl><dt><span class="strong">Parameters:</span></dt><dd><code>charCode</code> - Either -1 to indicate that no additional escaping 1057 is to be done; or highest code point not to escape (meaning higher 1058 ones will be), if positive value.</dd><dt><span class="strong">Since:</span></dt> 1059 <dd>1.8</dd></dl> 1060</li> 1061</ul> 1062<a name="getHighestEscapedChar()"> 1063<!-- --> 1064</a> 1065<ul class="blockList"> 1066<li class="blockList"> 1067<h4>getHighestEscapedChar</h4> 1068<pre>public int getHighestEscapedChar()</pre> 1069<div class="block">Accessor method for testing what is the highest unescaped character 1070 configured for this generator. This may be either positive value 1071 (when escaping configuration has been set and is in effect), or 1072 0 to indicate that no additional escaping is in effect. 1073 Some generators may not support additional escaping: for example, 1074 generators for binary formats that do not use escaping should 1075 simply return 0.</div> 1076<dl><dt><span class="strong">Returns:</span></dt><dd>Currently active limitation for highest non-escaped character, 1077 if defined; or -1 to indicate no additional escaping is performed.</dd></dl> 1078</li> 1079</ul> 1080<a name="getCharacterEscapes()"> 1081<!-- --> 1082</a> 1083<ul class="blockList"> 1084<li class="blockList"> 1085<h4>getCharacterEscapes</h4> 1086<pre>public <a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> getCharacterEscapes()</pre> 1087<div class="block">Method for accessing custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s 1088 it creates.</div> 1089<dl><dt><span class="strong">Since:</span></dt> 1090 <dd>1.8</dd></dl> 1091</li> 1092</ul> 1093<a name="setCharacterEscapes(org.codehaus.jackson.io.CharacterEscapes)"> 1094<!-- --> 1095</a> 1096<ul class="blockList"> 1097<li class="blockList"> 1098<h4>setCharacterEscapes</h4> 1099<pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setCharacterEscapes(<a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> esc)</pre> 1100<div class="block">Method for defining custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s 1101 it creates.</div> 1102<dl><dt><span class="strong">Since:</span></dt> 1103 <dd>1.8</dd></dl> 1104</li> 1105</ul> 1106<a name="writeStartArray()"> 1107<!-- --> 1108</a> 1109<ul class="blockList"> 1110<li class="blockList"> 1111<h4>writeStartArray</h4> 1112<pre>public abstract void writeStartArray() 1113 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>, 1114 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1115<div class="block">Method for writing starting marker of a JSON Array value 1116 (character '['; plus possible white space decoration 1117 if pretty-printing is enabled). 1118<p> 1119 Array values can be written in any context where values 1120 are allowed: meaning everywhere except for when 1121 a field name is expected.</div> 1122<dl><dt><span class="strong">Throws:</span></dt> 1123<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> 1124<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1125</li> 1126</ul> 1127<a name="writeEndArray()"> 1128<!-- --> 1129</a> 1130<ul class="blockList"> 1131<li class="blockList"> 1132<h4>writeEndArray</h4> 1133<pre>public abstract void writeEndArray() 1134 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>, 1135 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1136<div class="block">Method for writing closing marker of a JSON Array value 1137 (character ']'; plus possible white space decoration 1138 if pretty-printing is enabled). 1139<p> 1140 Marker can be written if the innermost structured type 1141 is Array.</div> 1142<dl><dt><span class="strong">Throws:</span></dt> 1143<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> 1144<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1145</li> 1146</ul> 1147<a name="writeStartObject()"> 1148<!-- --> 1149</a> 1150<ul class="blockList"> 1151<li class="blockList"> 1152<h4>writeStartObject</h4> 1153<pre>public abstract void writeStartObject() 1154 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>, 1155 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1156<div class="block">Method for writing starting marker of a JSON Object value 1157 (character '{'; plus possible white space decoration 1158 if pretty-printing is enabled). 1159<p> 1160 Object values can be written in any context where values 1161 are allowed: meaning everywhere except for when 1162 a field name is expected.</div> 1163<dl><dt><span class="strong">Throws:</span></dt> 1164<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> 1165<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1166</li> 1167</ul> 1168<a name="writeEndObject()"> 1169<!-- --> 1170</a> 1171<ul class="blockList"> 1172<li class="blockList"> 1173<h4>writeEndObject</h4> 1174<pre>public abstract void writeEndObject() 1175 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>, 1176 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1177<div class="block">Method for writing closing marker of a JSON Object value 1178 (character '}'; plus possible white space decoration 1179 if pretty-printing is enabled). 1180<p> 1181 Marker can be written if the innermost structured type 1182 is Object, and the last written event was either a 1183 complete value, or START-OBJECT marker (see JSON specification 1184 for more details).</div> 1185<dl><dt><span class="strong">Throws:</span></dt> 1186<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> 1187<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1188</li> 1189</ul> 1190<a name="writeFieldName(java.lang.String)"> 1191<!-- --> 1192</a> 1193<ul class="blockList"> 1194<li class="blockList"> 1195<h4>writeFieldName</h4> 1196<pre>public abstract 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) 1197 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>, 1198 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1199<div class="block">Method for writing a field name (JSON String surrounded by 1200 double quotes: syntactically identical to a JSON String value), 1201 possibly decorated by white space if pretty-printing is enabled. 1202<p> 1203 Field names can only be written in Object context (check out 1204 JSON specification for details), when field name is expected 1205 (field names alternate with values).</div> 1206<dl><dt><span class="strong">Throws:</span></dt> 1207<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> 1208<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1209</li> 1210</ul> 1211<a name="writeFieldName(org.codehaus.jackson.io.SerializedString)"> 1212<!-- --> 1213</a> 1214<ul class="blockList"> 1215<li class="blockList"> 1216<h4>writeFieldName</h4> 1217<pre>public void writeFieldName(<a href="../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io">SerializedString</a> name) 1218 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>, 1219 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1220<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference 1221 being that it may perform better as some of processing (such as 1222 quoting of certain characters, or encoding into external encoding 1223 if supported by generator) can be done just once and reused for 1224 later calls. 1225<p> 1226 Default implementation simple uses unprocessed name container in 1227 serialized String; implementations are strongly encouraged to make 1228 use of more efficient methods argument object has.</div> 1229<dl><dt><span class="strong">Throws:</span></dt> 1230<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> 1231<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 1232 <dd>1.6</dd></dl> 1233</li> 1234</ul> 1235<a name="writeFieldName(org.codehaus.jackson.SerializableString)"> 1236<!-- --> 1237</a> 1238<ul class="blockList"> 1239<li class="blockList"> 1240<h4>writeFieldName</h4> 1241<pre>public void writeFieldName(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> name) 1242 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>, 1243 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1244<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference 1245 being that it may perform better as some of processing (such as 1246 quoting of certain characters, or encoding into external encoding 1247 if supported by generator) can be done just once and reused for 1248 later calls. 1249<p> 1250 Default implementation simple uses unprocessed name container in 1251 serialized String; implementations are strongly encouraged to make 1252 use of more efficient methods argument object has.</div> 1253<dl><dt><span class="strong">Throws:</span></dt> 1254<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> 1255<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 1256 <dd>1.7</dd></dl> 1257</li> 1258</ul> 1259<a name="writeString(java.lang.String)"> 1260<!-- --> 1261</a> 1262<ul class="blockList"> 1263<li class="blockList"> 1264<h4>writeString</h4> 1265<pre>public abstract 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) 1266 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>, 1267 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1268<div class="block">Method for outputting a String value. Depending on context 1269 this means either array element, (object) field value or 1270 a stand alone String; but in all cases, String will be 1271 surrounded in double quotes, and contents will be properly 1272 escaped as required by JSON specification.</div> 1273<dl><dt><span class="strong">Throws:</span></dt> 1274<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> 1275<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1276</li> 1277</ul> 1278<a name="writeString(char[], int, int)"> 1279<!-- --> 1280</a> 1281<ul class="blockList"> 1282<li class="blockList"> 1283<h4>writeString</h4> 1284<pre>public abstract void writeString(char[] text, 1285 int offset, 1286 int len) 1287 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>, 1288 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1289<div class="block">Method for outputting a String value. Depending on context 1290 this means either array element, (object) field value or 1291 a stand alone String; but in all cases, String will be 1292 surrounded in double quotes, and contents will be properly 1293 escaped as required by JSON specification.</div> 1294<dl><dt><span class="strong">Throws:</span></dt> 1295<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> 1296<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1297</li> 1298</ul> 1299<a name="writeString(org.codehaus.jackson.SerializableString)"> 1300<!-- --> 1301</a> 1302<ul class="blockList"> 1303<li class="blockList"> 1304<h4>writeString</h4> 1305<pre>public void writeString(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> text) 1306 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>, 1307 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1308<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a>, but that takes 1309 <a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><code>SerializableString</code></a> which can make this potentially 1310 more efficient to call as generator may be able to reuse 1311 quoted and/or encoded representation. 1312<p> 1313 Default implementation just calls <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a>; 1314 sub-classes should override it with more efficient implementation 1315 if possible.</div> 1316<dl><dt><span class="strong">Throws:</span></dt> 1317<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> 1318<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 1319 <dd>1.7</dd></dl> 1320</li> 1321</ul> 1322<a name="writeRawUTF8String(byte[], int, int)"> 1323<!-- --> 1324</a> 1325<ul class="blockList"> 1326<li class="blockList"> 1327<h4>writeRawUTF8String</h4> 1328<pre>public abstract void writeRawUTF8String(byte[] text, 1329 int offset, 1330 int length) 1331 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>, 1332 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1333<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as 1334 its input a UTF-8 encoded String that is to be output as-is, without additional 1335 escaping (type of which depends on data format; backslashes for JSON). 1336 However, quoting that data format requires (like double-quotes for JSON) will be added 1337 around the value if and as necessary. 1338<p> 1339 Note that some backends may choose not to support this method: for 1340 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> 1341 using this method would require UTF-8 decoding. 1342 If so, implementation may instead choose to throw a 1343 <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 1344 of having to decode input.</div> 1345<dl><dt><span class="strong">Throws:</span></dt> 1346<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> 1347<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 1348 <dd>1.7</dd></dl> 1349</li> 1350</ul> 1351<a name="writeUTF8String(byte[], int, int)"> 1352<!-- --> 1353</a> 1354<ul class="blockList"> 1355<li class="blockList"> 1356<h4>writeUTF8String</h4> 1357<pre>public abstract void writeUTF8String(byte[] text, 1358 int offset, 1359 int length) 1360 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>, 1361 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1362<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as its input 1363 a UTF-8 encoded String which has <b>not</b> been escaped using whatever 1364 escaping scheme data format requires (for JSON that is backslash-escaping 1365 for control characters and double-quotes; for other formats something else). 1366 This means that textual JSON backends need to check if value needs 1367 JSON escaping, but otherwise can just be copied as is to output. 1368 Also, quoting that data format requires (like double-quotes for JSON) will be added 1369 around the value if and as necessary. 1370<p> 1371 Note that some backends may choose not to support this method: for 1372 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> 1373 using this method would require UTF-8 decoding. 1374 In this case 1375 generator implementation may instead choose to throw a 1376 <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 1377 of having to decode input.</div> 1378<dl><dt><span class="strong">Throws:</span></dt> 1379<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> 1380<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 1381 <dd>1.7</dd></dl> 1382</li> 1383</ul> 1384<a name="writeRaw(java.lang.String)"> 1385<!-- --> 1386</a> 1387<ul class="blockList"> 1388<li class="blockList"> 1389<h4>writeRaw</h4> 1390<pre>public abstract 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) 1391 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>, 1392 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1393<div class="block">Method that will force generator to copy 1394 input text verbatim with <b>no</b> modifications (including 1395 that no escaping is done and no separators are added even 1396 if context [array, object] would otherwise require such). 1397 If such separators are desired, use 1398 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. 1399<p> 1400 Note that not all generator implementations necessarily support 1401 such by-pass methods: those that do not will throw 1402 <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> 1403<dl><dt><span class="strong">Throws:</span></dt> 1404<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> 1405<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1406</li> 1407</ul> 1408<a name="writeRaw(java.lang.String, int, int)"> 1409<!-- --> 1410</a> 1411<ul class="blockList"> 1412<li class="blockList"> 1413<h4>writeRaw</h4> 1414<pre>public abstract 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, 1415 int offset, 1416 int len) 1417 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>, 1418 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1419<div class="block">Method that will force generator to copy 1420 input text verbatim with <b>no</b> modifications (including 1421 that no escaping is done and no separators are added even 1422 if context [array, object] would otherwise require such). 1423 If such separators are desired, use 1424 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. 1425<p> 1426 Note that not all generator implementations necessarily support 1427 such by-pass methods: those that do not will throw 1428 <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> 1429<dl><dt><span class="strong">Throws:</span></dt> 1430<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> 1431<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1432</li> 1433</ul> 1434<a name="writeRaw(char[], int, int)"> 1435<!-- --> 1436</a> 1437<ul class="blockList"> 1438<li class="blockList"> 1439<h4>writeRaw</h4> 1440<pre>public abstract void writeRaw(char[] text, 1441 int offset, 1442 int len) 1443 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>, 1444 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1445<div class="block">Method that will force generator to copy 1446 input text verbatim with <b>no</b> modifications (including 1447 that no escaping is done and no separators are added even 1448 if context [array, object] would otherwise require such). 1449 If such separators are desired, use 1450 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. 1451<p> 1452 Note that not all generator implementations necessarily support 1453 such by-pass methods: those that do not will throw 1454 <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> 1455<dl><dt><span class="strong">Throws:</span></dt> 1456<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> 1457<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1458</li> 1459</ul> 1460<a name="writeRaw(char)"> 1461<!-- --> 1462</a> 1463<ul class="blockList"> 1464<li class="blockList"> 1465<h4>writeRaw</h4> 1466<pre>public abstract void writeRaw(char c) 1467 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>, 1468 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1469<div class="block">Method that will force generator to copy 1470 input text verbatim with <b>no</b> modifications (including 1471 that no escaping is done and no separators are added even 1472 if context [array, object] would otherwise require such). 1473 If such separators are desired, use 1474 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. 1475<p> 1476 Note that not all generator implementations necessarily support 1477 such by-pass methods: those that do not will throw 1478 <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> 1479<dl><dt><span class="strong">Throws:</span></dt> 1480<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> 1481<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1482</li> 1483</ul> 1484<a name="writeRawValue(java.lang.String)"> 1485<!-- --> 1486</a> 1487<ul class="blockList"> 1488<li class="blockList"> 1489<h4>writeRawValue</h4> 1490<pre>public abstract 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) 1491 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>, 1492 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1493<div class="block">Method that will force generator to copy 1494 input text verbatim without any modifications, but assuming 1495 it must constitute a single legal JSON value (number, string, 1496 boolean, null, Array or List). Assuming this, proper separators 1497 are added if and as needed (comma or colon), and generator 1498 state updated to reflect this.</div> 1499<dl><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(java.lang.String, int, int)"> 1505<!-- --> 1506</a> 1507<ul class="blockList"> 1508<li class="blockList"> 1509<h4>writeRawValue</h4> 1510<pre>public abstract 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, 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><dt><span class="strong">Throws:</span></dt> 1516<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> 1517<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1518</li> 1519</ul> 1520<a name="writeRawValue(char[], int, int)"> 1521<!-- --> 1522</a> 1523<ul class="blockList"> 1524<li class="blockList"> 1525<h4>writeRawValue</h4> 1526<pre>public abstract void writeRawValue(char[] text, 1527 int offset, 1528 int len) 1529 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>, 1530 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1531<dl><dt><span class="strong">Throws:</span></dt> 1532<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> 1533<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1534</li> 1535</ul> 1536<a name="writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"> 1537<!-- --> 1538</a> 1539<ul class="blockList"> 1540<li class="blockList"> 1541<h4>writeBinary</h4> 1542<pre>public abstract void writeBinary(<a href="../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, 1543 byte[] data, 1544 int offset, 1545 int len) 1546 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>, 1547 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1548<div class="block">Method that will output given chunk of binary data as base64 1549 encoded, as a complete String value (surrounded by double quotes). 1550 This method defaults 1551<p> 1552 Note: because Json Strings can not contain unescaped linefeeds, 1553 if linefeeds are included (as per last argument), they must be 1554 escaped. This adds overhead for decoding without improving 1555 readability. 1556 Alternatively if linefeeds are not included, 1557 resulting String value may violate the requirement of base64 1558 RFC which mandates line-length of 76 characters and use of 1559 linefeeds. However, all <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> implementations 1560 are required to accept such "long line base64"; as do 1561 typical production-level base64 decoders.</div> 1562<dl><dt><span class="strong">Parameters:</span></dt><dd><code>b64variant</code> - Base64 variant to use: defines details such as 1563 whether padding is used (and if so, using which character); 1564 what is the maximum line length before adding linefeed, 1565 and also the underlying alphabet to use.</dd> 1566<dt><span class="strong">Throws:</span></dt> 1567<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> 1568<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1569</li> 1570</ul> 1571<a name="writeBinary(byte[], int, int)"> 1572<!-- --> 1573</a> 1574<ul class="blockList"> 1575<li class="blockList"> 1576<h4>writeBinary</h4> 1577<pre>public void writeBinary(byte[] data, 1578 int offset, 1579 int len) 1580 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>, 1581 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1582<div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, 1583 but default to using the Jackson default Base64 variant 1584 (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>).</div> 1585<dl><dt><span class="strong">Throws:</span></dt> 1586<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> 1587<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1588</li> 1589</ul> 1590<a name="writeBinary(byte[])"> 1591<!-- --> 1592</a> 1593<ul class="blockList"> 1594<li class="blockList"> 1595<h4>writeBinary</h4> 1596<pre>public void writeBinary(byte[] data) 1597 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>, 1598 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1599<div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, 1600 but assumes default to using the Jackson default Base64 variant 1601 (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>). Also 1602 assumes that whole byte array is to be output.</div> 1603<dl><dt><span class="strong">Throws:</span></dt> 1604<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> 1605<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1606</li> 1607</ul> 1608<a name="writeNumber(int)"> 1609<!-- --> 1610</a> 1611<ul class="blockList"> 1612<li class="blockList"> 1613<h4>writeNumber</h4> 1614<pre>public abstract void writeNumber(int v) 1615 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>, 1616 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1617<div class="block">Method for outputting given value as Json number. 1618 Can be called in any context where a value is expected 1619 (Array value, Object field value, root-level value). 1620 Additional white space may be added around the value 1621 if pretty-printing is enabled.</div> 1622<dl><dt><span class="strong">Throws:</span></dt> 1623<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> 1624<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1625</li> 1626</ul> 1627<a name="writeNumber(long)"> 1628<!-- --> 1629</a> 1630<ul class="blockList"> 1631<li class="blockList"> 1632<h4>writeNumber</h4> 1633<pre>public abstract void writeNumber(long v) 1634 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>, 1635 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1636<div class="block">Method for outputting given value as Json number. 1637 Can be called in any context where a value is expected 1638 (Array value, Object field value, root-level value). 1639 Additional white space may be added around the value 1640 if pretty-printing is enabled.</div> 1641<dl><dt><span class="strong">Throws:</span></dt> 1642<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> 1643<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1644</li> 1645</ul> 1646<a name="writeNumber(java.math.BigInteger)"> 1647<!-- --> 1648</a> 1649<ul class="blockList"> 1650<li class="blockList"> 1651<h4>writeNumber</h4> 1652<pre>public abstract 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) 1653 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>, 1654 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1655<div class="block">Method for outputting given value as Json number. 1656 Can be called in any context where a value is expected 1657 (Array value, Object field value, root-level value). 1658 Additional white space may be added around the value 1659 if pretty-printing is enabled.</div> 1660<dl><dt><span class="strong">Throws:</span></dt> 1661<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> 1662<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1663</li> 1664</ul> 1665<a name="writeNumber(double)"> 1666<!-- --> 1667</a> 1668<ul class="blockList"> 1669<li class="blockList"> 1670<h4>writeNumber</h4> 1671<pre>public abstract void writeNumber(double d) 1672 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>, 1673 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1674<div class="block">Method for outputting indicate Json numeric value. 1675 Can be called in any context where a value is expected 1676 (Array value, Object field value, root-level value). 1677 Additional white space may be added around the value 1678 if pretty-printing is enabled.</div> 1679<dl><dt><span class="strong">Throws:</span></dt> 1680<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> 1681<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1682</li> 1683</ul> 1684<a name="writeNumber(float)"> 1685<!-- --> 1686</a> 1687<ul class="blockList"> 1688<li class="blockList"> 1689<h4>writeNumber</h4> 1690<pre>public abstract void writeNumber(float f) 1691 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>, 1692 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1693<div class="block">Method for outputting indicate Json numeric value. 1694 Can be called in any context where a value is expected 1695 (Array value, Object field value, root-level value). 1696 Additional white space may be added around the value 1697 if pretty-printing is enabled.</div> 1698<dl><dt><span class="strong">Throws:</span></dt> 1699<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> 1700<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1701</li> 1702</ul> 1703<a name="writeNumber(java.math.BigDecimal)"> 1704<!-- --> 1705</a> 1706<ul class="blockList"> 1707<li class="blockList"> 1708<h4>writeNumber</h4> 1709<pre>public abstract 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) 1710 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>, 1711 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1712<div class="block">Method for outputting indicate Json numeric value. 1713 Can be called in any context where a value is expected 1714 (Array value, Object field value, root-level value). 1715 Additional white space may be added around the value 1716 if pretty-printing is enabled.</div> 1717<dl><dt><span class="strong">Throws:</span></dt> 1718<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> 1719<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1720</li> 1721</ul> 1722<a name="writeNumber(java.lang.String)"> 1723<!-- --> 1724</a> 1725<ul class="blockList"> 1726<li class="blockList"> 1727<h4>writeNumber</h4> 1728<pre>public abstract 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) 1729 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>, 1730 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a>, 1731 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></pre> 1732<div class="block">Write method that can be used for custom numeric types that can 1733 not be (easily?) converted to "standard" Java number types. 1734 Because numbers are not surrounded by double quotes, regular 1735 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(java.lang.String)</code></a> method can not be used; nor 1736 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)"><code>writeRaw(java.lang.String)</code></a> because that does not properly handle 1737 value separators needed in Array or Object contexts. 1738<p> 1739 Note: because of lack of type safety, some generator 1740 implementations may not be able to implement this 1741 method. For example, if a binary json format is used, 1742 it may require type information for encoding; similarly 1743 for generator-wrappers around Java objects or Json nodes. 1744 If implementation does not implement this method, 1745 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> 1746<dl><dt><span class="strong">Throws:</span></dt> 1747<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> 1748<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd> 1749<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code></dd></dl> 1750</li> 1751</ul> 1752<a name="writeBoolean(boolean)"> 1753<!-- --> 1754</a> 1755<ul class="blockList"> 1756<li class="blockList"> 1757<h4>writeBoolean</h4> 1758<pre>public abstract void writeBoolean(boolean state) 1759 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>, 1760 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1761<div class="block">Method for outputting literal Json boolean value (one of 1762 Strings 'true' and 'false'). 1763 Can be called in any context where a value is expected 1764 (Array value, Object field value, root-level value). 1765 Additional white space may be added around the value 1766 if pretty-printing is enabled.</div> 1767<dl><dt><span class="strong">Throws:</span></dt> 1768<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> 1769<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1770</li> 1771</ul> 1772<a name="writeNull()"> 1773<!-- --> 1774</a> 1775<ul class="blockList"> 1776<li class="blockList"> 1777<h4>writeNull</h4> 1778<pre>public abstract void writeNull() 1779 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>, 1780 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1781<div class="block">Method for outputting literal Json null value. 1782 Can be called in any context where a value is expected 1783 (Array value, Object field value, root-level value). 1784 Additional white space may be added around the value 1785 if pretty-printing is enabled.</div> 1786<dl><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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1789</li> 1790</ul> 1791<a name="writeObject(java.lang.Object)"> 1792<!-- --> 1793</a> 1794<ul class="blockList"> 1795<li class="blockList"> 1796<h4>writeObject</h4> 1797<pre>public abstract 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> pojo) 1798 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>, 1799 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 1800<div class="block">Method for writing given Java object (POJO) as Json. 1801 Exactly how the object gets written depends on object 1802 in question (ad on codec, its configuration); for most 1803 beans it will result in Json object, but for others Json 1804 array, or String or numeric value (and for nulls, Json 1805 null literal. 1806 <b>NOTE</b>: generator must have its <b>object codec</b> 1807 set to non-null value; for generators created by a mapping 1808 factory this is the case, for others not.</div> 1809<dl><dt><span class="strong">Throws:</span></dt> 1810<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> 1811<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 1812</li> 1813</ul> 1814<a name="writeTree(org.codehaus.jackson.JsonNode)"> 1815<!-- --> 1816</a> 1817<ul class="blockList"> 1818<li class="blockList"> 1819<h4>writeTree</h4> 1820<pre>public abstract void writeTree(<a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> rootNode) 1821 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>, 1822 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 1823<div class="block">Method for writing given JSON tree (expressed as a tree 1824 where given JsonNode is the root) using this generator. 1825 This will generally just call 1826 <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a> with given node, but is added 1827 for convenience and to make code more explicit in cases 1828 where it deals specifically with trees.</div> 1829<dl><dt><span class="strong">Throws:</span></dt> 1830<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> 1831<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 1832</li> 1833</ul> 1834<a name="writeStringField(java.lang.String, java.lang.String)"> 1835<!-- --> 1836</a> 1837<ul class="blockList"> 1838<li class="blockList"> 1839<h4>writeStringField</h4> 1840<pre>public void writeStringField(<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> fieldName, 1841 <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> value) 1842 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>, 1843 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1844<div class="block">Convenience method for outputting a field entry ("member") 1845 that has a String value. Equivalent to: 1846<pre> 1847 writeFieldName(fieldName); 1848 writeString(value); 1849</pre> 1850<p> 1851 Note: many performance-sensitive implementations override this method</div> 1852<dl><dt><span class="strong">Throws:</span></dt> 1853<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> 1854<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1855</li> 1856</ul> 1857<a name="writeBooleanField(java.lang.String, boolean)"> 1858<!-- --> 1859</a> 1860<ul class="blockList"> 1861<li class="blockList"> 1862<h4>writeBooleanField</h4> 1863<pre>public final void writeBooleanField(<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> fieldName, 1864 boolean value) 1865 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>, 1866 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1867<div class="block">Convenience method for outputting a field entry ("member") 1868 that has a boolean value. Equivalent to: 1869<pre> 1870 writeFieldName(fieldName); 1871 writeBoolean(value); 1872</pre></div> 1873<dl><dt><span class="strong">Throws:</span></dt> 1874<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> 1875<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1876</li> 1877</ul> 1878<a name="writeNullField(java.lang.String)"> 1879<!-- --> 1880</a> 1881<ul class="blockList"> 1882<li class="blockList"> 1883<h4>writeNullField</h4> 1884<pre>public final void writeNullField(<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> fieldName) 1885 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>, 1886 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1887<div class="block">Convenience method for outputting a field entry ("member") 1888 that has JSON literal value null. Equivalent to: 1889<pre> 1890 writeFieldName(fieldName); 1891 writeNull(); 1892</pre></div> 1893<dl><dt><span class="strong">Throws:</span></dt> 1894<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> 1895<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1896</li> 1897</ul> 1898<a name="writeNumberField(java.lang.String, int)"> 1899<!-- --> 1900</a> 1901<ul class="blockList"> 1902<li class="blockList"> 1903<h4>writeNumberField</h4> 1904<pre>public final void writeNumberField(<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> fieldName, 1905 int value) 1906 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>, 1907 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1908<div class="block">Convenience method for outputting a field entry ("member") 1909 that has the specified numeric value. Equivalent to: 1910<pre> 1911 writeFieldName(fieldName); 1912 writeNumber(value); 1913</pre></div> 1914<dl><dt><span class="strong">Throws:</span></dt> 1915<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> 1916<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1917</li> 1918</ul> 1919<a name="writeNumberField(java.lang.String, long)"> 1920<!-- --> 1921</a> 1922<ul class="blockList"> 1923<li class="blockList"> 1924<h4>writeNumberField</h4> 1925<pre>public final void writeNumberField(<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> fieldName, 1926 long value) 1927 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>, 1928 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1929<div class="block">Convenience method for outputting a field entry ("member") 1930 that has the specified numeric value. Equivalent to: 1931<pre> 1932 writeFieldName(fieldName); 1933 writeNumber(value); 1934</pre></div> 1935<dl><dt><span class="strong">Throws:</span></dt> 1936<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> 1937<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1938</li> 1939</ul> 1940<a name="writeNumberField(java.lang.String, double)"> 1941<!-- --> 1942</a> 1943<ul class="blockList"> 1944<li class="blockList"> 1945<h4>writeNumberField</h4> 1946<pre>public final void writeNumberField(<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> fieldName, 1947 double value) 1948 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>, 1949 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1950<div class="block">Convenience method for outputting a field entry ("member") 1951 that has the specified numeric value. Equivalent to: 1952<pre> 1953 writeFieldName(fieldName); 1954 writeNumber(value); 1955</pre></div> 1956<dl><dt><span class="strong">Throws:</span></dt> 1957<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> 1958<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1959</li> 1960</ul> 1961<a name="writeNumberField(java.lang.String, float)"> 1962<!-- --> 1963</a> 1964<ul class="blockList"> 1965<li class="blockList"> 1966<h4>writeNumberField</h4> 1967<pre>public final void writeNumberField(<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> fieldName, 1968 float value) 1969 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>, 1970 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1971<div class="block">Convenience method for outputting a field entry ("member") 1972 that has the specified numeric value. Equivalent to: 1973<pre> 1974 writeFieldName(fieldName); 1975 writeNumber(value); 1976</pre></div> 1977<dl><dt><span class="strong">Throws:</span></dt> 1978<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> 1979<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 1980</li> 1981</ul> 1982<a name="writeNumberField(java.lang.String, java.math.BigDecimal)"> 1983<!-- --> 1984</a> 1985<ul class="blockList"> 1986<li class="blockList"> 1987<h4>writeNumberField</h4> 1988<pre>public final void writeNumberField(<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> fieldName, 1989 <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> value) 1990 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>, 1991 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 1992<div class="block">Convenience method for outputting a field entry ("member") 1993 that has the specified numeric value. 1994 Equivalent to: 1995<pre> 1996 writeFieldName(fieldName); 1997 writeNumber(value); 1998</pre></div> 1999<dl><dt><span class="strong">Throws:</span></dt> 2000<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> 2001<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 2002</li> 2003</ul> 2004<a name="writeBinaryField(java.lang.String, byte[])"> 2005<!-- --> 2006</a> 2007<ul class="blockList"> 2008<li class="blockList"> 2009<h4>writeBinaryField</h4> 2010<pre>public final void writeBinaryField(<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> fieldName, 2011 byte[] data) 2012 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>, 2013 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 2014<div class="block">Convenience method for outputting a field entry ("member") 2015 that contains specified data in base64-encoded form. 2016 Equivalent to: 2017<pre> 2018 writeFieldName(fieldName); 2019 writeBinary(value); 2020</pre></div> 2021<dl><dt><span class="strong">Throws:</span></dt> 2022<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> 2023<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 2024</li> 2025</ul> 2026<a name="writeArrayFieldStart(java.lang.String)"> 2027<!-- --> 2028</a> 2029<ul class="blockList"> 2030<li class="blockList"> 2031<h4>writeArrayFieldStart</h4> 2032<pre>public final void writeArrayFieldStart(<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> fieldName) 2033 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>, 2034 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 2035<div class="block">Convenience method for outputting a field entry ("member") 2036 (that will contain a JSON Array value), and the START_ARRAY marker. 2037 Equivalent to: 2038<pre> 2039 writeFieldName(fieldName); 2040 writeStartArray(); 2041</pre> 2042<p> 2043 Note: caller still has to take care to close the array 2044 (by calling {#link #writeEndArray}) after writing all values 2045 of the value Array.</div> 2046<dl><dt><span class="strong">Throws:</span></dt> 2047<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> 2048<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 2049</li> 2050</ul> 2051<a name="writeObjectFieldStart(java.lang.String)"> 2052<!-- --> 2053</a> 2054<ul class="blockList"> 2055<li class="blockList"> 2056<h4>writeObjectFieldStart</h4> 2057<pre>public final void writeObjectFieldStart(<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> fieldName) 2058 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>, 2059 <a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> 2060<div class="block">Convenience method for outputting a field entry ("member") 2061 (that will contain a JSON Object value), and the START_OBJECT marker. 2062 Equivalent to: 2063<pre> 2064 writeFieldName(fieldName); 2065 writeStartObject(); 2066</pre> 2067<p> 2068 Note: caller still has to take care to close the Object 2069 (by calling {#link #writeEndObject}) after writing all 2070 entries of the value Object.</div> 2071<dl><dt><span class="strong">Throws:</span></dt> 2072<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> 2073<dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> 2074</li> 2075</ul> 2076<a name="writeObjectField(java.lang.String, java.lang.Object)"> 2077<!-- --> 2078</a> 2079<ul class="blockList"> 2080<li class="blockList"> 2081<h4>writeObjectField</h4> 2082<pre>public final void writeObjectField(<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> fieldName, 2083 <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> pojo) 2084 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>, 2085 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2086<div class="block">Convenience method for outputting a field entry ("member") 2087 that has contents of specific Java object as its value. 2088 Equivalent to: 2089<pre> 2090 writeFieldName(fieldName); 2091 writeObject(pojo); 2092</pre></div> 2093<dl><dt><span class="strong">Throws:</span></dt> 2094<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> 2095<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 2096</li> 2097</ul> 2098<a name="copyCurrentEvent(org.codehaus.jackson.JsonParser)"> 2099<!-- --> 2100</a> 2101<ul class="blockList"> 2102<li class="blockList"> 2103<h4>copyCurrentEvent</h4> 2104<pre>public abstract void copyCurrentEvent(<a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp) 2105 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>, 2106 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2107<div class="block">Method for copying contents of the current event that 2108 the given parser instance points to. 2109 Note that the method <b>will not</b> copy any other events, 2110 such as events contained within Json Array or Object structures. 2111<p> 2112 Calling this method will not advance the given 2113 parser, although it may cause parser to internally process 2114 more data (if it lazy loads contents of value events, for example)</div> 2115<dl><dt><span class="strong">Throws:</span></dt> 2116<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> 2117<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 2118</li> 2119</ul> 2120<a name="copyCurrentStructure(org.codehaus.jackson.JsonParser)"> 2121<!-- --> 2122</a> 2123<ul class="blockList"> 2124<li class="blockList"> 2125<h4>copyCurrentStructure</h4> 2126<pre>public abstract void copyCurrentStructure(<a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp) 2127 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>, 2128 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2129<div class="block">Method for copying contents of the current event 2130 <b>and following events that it encloses</b> 2131 the given parser instance points to. 2132<p> 2133 So what constitutes enclosing? Here is the list of 2134 events that have associated enclosed events that will 2135 get copied: 2136<ul> 2137 <li><a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a>: 2138 all events up to and including matching (closing) 2139 <a href="../../../org/codehaus/jackson/JsonToken.html#END_OBJECT"><code>JsonToken.END_OBJECT</code></a> will be copied 2140 </li> 2141 <li><a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a> 2142 all events up to and including matching (closing) 2143 <a href="../../../org/codehaus/jackson/JsonToken.html#END_ARRAY"><code>JsonToken.END_ARRAY</code></a> will be copied 2144 </li> 2145 <li><a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a> the logical value (which 2146 can consist of a single scalar value; or a sequence of related 2147 events for structured types (Json Arrays, Objects)) will 2148 be copied along with the name itself. So essentially the 2149 whole <b>field entry</b> (name and value) will be copied. 2150 </li> 2151</ul> 2152<p> 2153 After calling this method, parser will point to the 2154 <b>last event</b> that was copied. This will either be 2155 the event parser already pointed to (if there were no 2156 enclosed events), or the last enclosed event copied.</div> 2157<dl><dt><span class="strong">Throws:</span></dt> 2158<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> 2159<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 2160</li> 2161</ul> 2162<a name="getOutputContext()"> 2163<!-- --> 2164</a> 2165<ul class="blockList"> 2166<li class="blockList"> 2167<h4>getOutputContext</h4> 2168<pre>public abstract <a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a> getOutputContext()</pre> 2169<dl><dt><span class="strong">Returns:</span></dt><dd>Context object that can give information about logical 2170 position within generated json content.</dd></dl> 2171</li> 2172</ul> 2173<a name="flush()"> 2174<!-- --> 2175</a> 2176<ul class="blockList"> 2177<li class="blockList"> 2178<h4>flush</h4> 2179<pre>public abstract void flush() 2180 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> 2181<div class="block">Method called to flush any buffered content to the underlying 2182 target (output stream, writer), and to flush the target itself 2183 as well.</div> 2184<dl><dt><span class="strong">Throws:</span></dt> 2185<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> 2186</li> 2187</ul> 2188<a name="isClosed()"> 2189<!-- --> 2190</a> 2191<ul class="blockList"> 2192<li class="blockList"> 2193<h4>isClosed</h4> 2194<pre>public abstract boolean isClosed()</pre> 2195<div class="block">Method that can be called to determine whether this generator 2196 is closed or not. If it is closed, no more output can be done.</div> 2197</li> 2198</ul> 2199<a name="close()"> 2200<!-- --> 2201</a> 2202<ul class="blockListLast"> 2203<li class="blockList"> 2204<h4>close</h4> 2205<pre>public abstract void close() 2206 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> 2207<div class="block">Method called to close this generator, so that no more content 2208 can be written. 2209<p> 2210 Whether the underlying target (stream, writer) gets closed depends 2211 on whether this generator either manages the target (i.e. is the 2212 only one with access to the target -- case if caller passes a 2213 reference to the resource such as File, but not stream); or 2214 has feature <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_TARGET"><code>JsonGenerator.Feature.AUTO_CLOSE_TARGET</code></a> enabled. 2215 If either of above is true, the target is also closed. Otherwise 2216 (not managing, feature not enabled), target is not closed.</div> 2217<dl> 2218<dt><strong>Specified by:</strong></dt> 2219<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> 2220<dt><strong>Specified by:</strong></dt> 2221<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> 2222<dt><span class="strong">Throws:</span></dt> 2223<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> 2224</li> 2225</ul> 2226</li> 2227</ul> 2228</li> 2229</ul> 2230</div> 2231</div> 2232<!-- ========= END OF CLASS DATA ========= --> 2233<!-- ======= START OF BOTTOM NAVBAR ====== --> 2234<div class="bottomNav"><a name="navbar_bottom"> 2235<!-- --> 2236</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 2237<!-- --> 2238</a> 2239<ul class="navList" title="Navigation"> 2240<li><a href="../../../overview-summary.html">Overview</a></li> 2241<li><a href="package-summary.html">Package</a></li> 2242<li class="navBarCell1Rev">Class</li> 2243<li><a href="class-use/JsonGenerator.html">Use</a></li> 2244<li><a href="package-tree.html">Tree</a></li> 2245<li><a href="../../../deprecated-list.html">Deprecated</a></li> 2246<li><a href="../../../index-all.html">Index</a></li> 2247<li><a href="../../../help-doc.html">Help</a></li> 2248</ul> 2249</div> 2250<div class="subNav"> 2251<ul class="navList"> 2252<li><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 2253<li><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 2254</ul> 2255<ul class="navList"> 2256<li><a href="../../../index.html?org/codehaus/jackson/JsonGenerator.html" target="_top">Frames</a></li> 2257<li><a href="JsonGenerator.html" target="_top">No Frames</a></li> 2258</ul> 2259<ul class="navList" id="allclasses_navbar_bottom"> 2260<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 2261</ul> 2262<div> 2263<script type="text/javascript"><!-- 2264 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 2265 if(window==top) { 2266 allClassesLink.style.display = "block"; 2267 } 2268 else { 2269 allClassesLink.style.display = "none"; 2270 } 2271 //--> 2272</script> 2273</div> 2274<div> 2275<ul class="subNavList"> 2276<li>Summary: </li> 2277<li><a href="#nested_class_summary">Nested</a> | </li> 2278<li><a href="#field_summary">Field</a> | </li> 2279<li><a href="#constructor_summary">Constr</a> | </li> 2280<li><a href="#method_summary">Method</a></li> 2281</ul> 2282<ul class="subNavList"> 2283<li>Detail: </li> 2284<li><a href="#field_detail">Field</a> | </li> 2285<li><a href="#constructor_detail">Constr</a> | </li> 2286<li><a href="#method_detail">Method</a></li> 2287</ul> 2288</div> 2289<a name="skip-navbar_bottom"> 2290<!-- --> 2291</a></div> 2292<!-- ======== END OF BOTTOM NAVBAR ======= --> 2293</body> 2294</html> 2295