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.Feature (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.Feature (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.Feature.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/JsonGenerator.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../org/codehaus/jackson/JsonLocation.html" title="class 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.Feature.html" target="_top">Frames</a></li> 44<li><a href="JsonGenerator.Feature.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>Nested | </li> 65<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 66<li>Field | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 72<li>Field | </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="Enum JsonGenerator.Feature" class="title">Enum JsonGenerator.Feature</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">java.lang.Enum</a><<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a>></li> 91<li> 92<ul class="inheritance"> 93<li>org.codehaus.jackson.JsonGenerator.Feature</li> 94</ul> 95</li> 96</ul> 97</li> 98</ul> 99<div class="description"> 100<ul class="blockList"> 101<li class="blockList"> 102<dl> 103<dt>All Implemented Interfaces:</dt> 104<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a>></dd> 105</dl> 106<dl> 107<dt>Enclosing class:</dt> 108<dd><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></dd> 109</dl> 110<hr> 111<br> 112<pre>public static enum <span class="strong">JsonGenerator.Feature</span> 113extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a>></pre> 114<div class="block">Enumeration that defines all togglable features for generators.</div> 115</li> 116</ul> 117</div> 118<div class="summary"> 119<ul class="blockList"> 120<li class="blockList"> 121<!-- =========== ENUM CONSTANT SUMMARY =========== --> 122<ul class="blockList"> 123<li class="blockList"><a name="enum_constant_summary"> 124<!-- --> 125</a> 126<h3>Enum Constant Summary</h3> 127<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Constant Summary table, listing enum constants, and an explanation"> 128<caption><span>Enum Constants</span><span class="tabEnd"> </span></caption> 129<tr> 130<th class="colOne" scope="col">Enum Constant and Description</th> 131</tr> 132<tr class="altColor"> 133<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_JSON_CONTENT">AUTO_CLOSE_JSON_CONTENT</a></strong></code> 134<div class="block">Feature that determines what happens when the generator is 135 closed while there are still unmatched 136 <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a> 137 entries in output content.</div> 138</td> 139</tr> 140<tr class="rowColor"> 141<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_TARGET">AUTO_CLOSE_TARGET</a></strong></code> 142<div class="block">Feature that determines whether generator will automatically 143 close underlying output target that is NOT owned by the 144 generator.</div> 145</td> 146</tr> 147<tr class="altColor"> 148<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#ESCAPE_NON_ASCII">ESCAPE_NON_ASCII</a></strong></code> 149<div class="block">Feature that specifies that all characters beyond 7-bit ASCII 150 range (i.e.</div> 151</td> 152</tr> 153<tr class="rowColor"> 154<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#FLUSH_PASSED_TO_STREAM">FLUSH_PASSED_TO_STREAM</a></strong></code> 155<div class="block">Feature that specifies that calls to <a href="../../../org/codehaus/jackson/JsonGenerator.html#flush()"><code>JsonGenerator.flush()</code></a> will cause 156 matching <code>flush()</code> to underlying <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> 157 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>; if disabled this will not be done.</div> 158</td> 159</tr> 160<tr class="altColor"> 161<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#QUOTE_FIELD_NAMES">QUOTE_FIELD_NAMES</a></strong></code> 162<div class="block">Feature that determines whether JSON Object field names are 163 quoted using double-quotes, as specified by JSON specification 164 or not.</div> 165</td> 166</tr> 167<tr class="rowColor"> 168<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#QUOTE_NON_NUMERIC_NUMBERS">QUOTE_NON_NUMERIC_NUMBERS</a></strong></code> 169<div class="block">Feature that determines whether "exceptional" (not real number) 170 float/double values are output as quoted strings.</div> 171</td> 172</tr> 173<tr class="altColor"> 174<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#WRITE_NUMBERS_AS_STRINGS">WRITE_NUMBERS_AS_STRINGS</a></strong></code> 175<div class="block">Feature that forces all Java numbers to be written as JSON strings.</div> 176</td> 177</tr> 178</table> 179</li> 180</ul> 181<!-- ========== METHOD SUMMARY =========== --> 182<ul class="blockList"> 183<li class="blockList"><a name="method_summary"> 184<!-- --> 185</a> 186<h3>Method Summary</h3> 187<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 188<caption><span>Methods</span><span class="tabEnd"> </span></caption> 189<tr> 190<th class="colFirst" scope="col">Modifier and Type</th> 191<th class="colLast" scope="col">Method and Description</th> 192</tr> 193<tr class="altColor"> 194<td class="colFirst"><code>static int</code></td> 195<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#collectDefaults()">collectDefaults</a></strong>()</code> 196<div class="block">Method that calculates bit set (flags) of all features that 197 are enabled by default.</div> 198</td> 199</tr> 200<tr class="rowColor"> 201<td class="colFirst"><code>boolean</code></td> 202<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#enabledByDefault()">enabledByDefault</a></strong>()</code> </td> 203</tr> 204<tr class="altColor"> 205<td class="colFirst"><code>int</code></td> 206<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#getMask()">getMask</a></strong>()</code> </td> 207</tr> 208<tr class="rowColor"> 209<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a></code></td> 210<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#valueOf(java.lang.String)">valueOf</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> 211<div class="block">Returns the enum constant of this type with the specified name.</div> 212</td> 213</tr> 214<tr class="altColor"> 215<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a>[]</code></td> 216<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#values()">values</a></strong>()</code> 217<div class="block">Returns an array containing the constants of this enum type, in 218the order they are declared.</div> 219</td> 220</tr> 221</table> 222<ul class="blockList"> 223<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum"> 224<!-- --> 225</a> 226<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a></h3> 227<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#compareTo(E)" title="class or interface in java.lang">compareTo</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.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/Enum.html?is-external=true#getDeclaringClass()" title="class or interface in java.lang">getDeclaringClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#name()" title="class or interface in java.lang">name</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#ordinal()" title="class or interface in java.lang">ordinal</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.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/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)" title="class or interface in java.lang">valueOf</a></code></li> 228</ul> 229<ul class="blockList"> 230<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 231<!-- --> 232</a> 233<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> 234<code><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#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 235</ul> 236</li> 237</ul> 238</li> 239</ul> 240</div> 241<div class="details"> 242<ul class="blockList"> 243<li class="blockList"> 244<!-- ============ ENUM CONSTANT DETAIL =========== --> 245<ul class="blockList"> 246<li class="blockList"><a name="enum_constant_detail"> 247<!-- --> 248</a> 249<h3>Enum Constant Detail</h3> 250<a name="AUTO_CLOSE_TARGET"> 251<!-- --> 252</a> 253<ul class="blockList"> 254<li class="blockList"> 255<h4>AUTO_CLOSE_TARGET</h4> 256<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> AUTO_CLOSE_TARGET</pre> 257<div class="block">Feature that determines whether generator will automatically 258 close underlying output target that is NOT owned by the 259 generator. 260 If disabled, calling application has to separately 261 close the underlying <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> and <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> 262 instances used to create the generator. If enabled, generator 263 will handle closing, as long as generator itself gets closed: 264 this happens when end-of-input is encountered, or generator 265 is closed by a call to <a href="../../../org/codehaus/jackson/JsonGenerator.html#close()"><code>JsonGenerator.close()</code></a>. 266<p> 267 Feature is enabled by default.</div> 268</li> 269</ul> 270<a name="AUTO_CLOSE_JSON_CONTENT"> 271<!-- --> 272</a> 273<ul class="blockList"> 274<li class="blockList"> 275<h4>AUTO_CLOSE_JSON_CONTENT</h4> 276<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> AUTO_CLOSE_JSON_CONTENT</pre> 277<div class="block">Feature that determines what happens when the generator is 278 closed while there are still unmatched 279 <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a> 280 entries in output content. If enabled, such Array(s) and/or 281 Object(s) are automatically closed; if disabled, nothing 282 specific is done. 283<p> 284 Feature is enabled by default.</div> 285</li> 286</ul> 287<a name="QUOTE_FIELD_NAMES"> 288<!-- --> 289</a> 290<ul class="blockList"> 291<li class="blockList"> 292<h4>QUOTE_FIELD_NAMES</h4> 293<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> QUOTE_FIELD_NAMES</pre> 294<div class="block">Feature that determines whether JSON Object field names are 295 quoted using double-quotes, as specified by JSON specification 296 or not. Ability to disable quoting was added to support use 297 cases where they are not usually expected, which most commonly 298 occurs when used straight from Javascript.</div> 299</li> 300</ul> 301<a name="QUOTE_NON_NUMERIC_NUMBERS"> 302<!-- --> 303</a> 304<ul class="blockList"> 305<li class="blockList"> 306<h4>QUOTE_NON_NUMERIC_NUMBERS</h4> 307<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> QUOTE_NON_NUMERIC_NUMBERS</pre> 308<div class="block">Feature that determines whether "exceptional" (not real number) 309 float/double values are output as quoted strings. 310 The values checked are Double.Nan, 311 Double.POSITIVE_INFINITY and Double.NEGATIVE_INIFINTY (and 312 associated Float values). 313 If feature is disabled, these numbers are still output using 314 associated literal values, resulting in non-conformant 315 output. 316<p> 317 Feature is enabled by default.</div> 318</li> 319</ul> 320<a name="WRITE_NUMBERS_AS_STRINGS"> 321<!-- --> 322</a> 323<ul class="blockList"> 324<li class="blockList"> 325<h4>WRITE_NUMBERS_AS_STRINGS</h4> 326<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> WRITE_NUMBERS_AS_STRINGS</pre> 327<div class="block">Feature that forces all Java numbers to be written as JSON strings. 328 Default state is 'false', meaning that Java numbers are to 329 be serialized using basic numeric serialization (as JSON 330 numbers, integral or floating point). If enabled, all such 331 numeric values are instead written out as JSON Strings. 332<p> 333 One use case is to avoid problems with Javascript limitations: 334 since Javascript standard specifies that all number handling 335 should be done using 64-bit IEEE 754 floating point values, 336 result being that some 64-bit integer values can not be 337 accurately represent (as mantissa is only 51 bit wide). 338<p> 339 Feature is disabled by default.</div> 340<dl><dt><span class="strong">Since:</span></dt> 341 <dd>1.3</dd></dl> 342</li> 343</ul> 344<a name="FLUSH_PASSED_TO_STREAM"> 345<!-- --> 346</a> 347<ul class="blockList"> 348<li class="blockList"> 349<h4>FLUSH_PASSED_TO_STREAM</h4> 350<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> FLUSH_PASSED_TO_STREAM</pre> 351<div class="block">Feature that specifies that calls to <a href="../../../org/codehaus/jackson/JsonGenerator.html#flush()"><code>JsonGenerator.flush()</code></a> will cause 352 matching <code>flush()</code> to underlying <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> 353 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>; if disabled this will not be done. 354 Main reason to disable this feature is to prevent flushing at 355 generator level, if it is not possible to prevent method being 356 called by other code (like <code>ObjectMapper</code> or third 357 party libraries). 358<p> 359 Feature is enabled by default.</div> 360<dl><dt><span class="strong">Since:</span></dt> 361 <dd>1.7</dd></dl> 362</li> 363</ul> 364<a name="ESCAPE_NON_ASCII"> 365<!-- --> 366</a> 367<ul class="blockListLast"> 368<li class="blockList"> 369<h4>ESCAPE_NON_ASCII</h4> 370<pre>public static final <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> ESCAPE_NON_ASCII</pre> 371<div class="block">Feature that specifies that all characters beyond 7-bit ASCII 372 range (i.e. code points of 128 and above) need to be output 373 using format-specific escapes (for JSON, backslash escapes), 374 if format uses escaping mechanisms (which is generally true 375 for textual formats but not for binary formats).</div> 376<dl><dt><span class="strong">Since:</span></dt> 377 <dd>1.8</dd></dl> 378</li> 379</ul> 380</li> 381</ul> 382<!-- ============ METHOD DETAIL ========== --> 383<ul class="blockList"> 384<li class="blockList"><a name="method_detail"> 385<!-- --> 386</a> 387<h3>Method Detail</h3> 388<a name="values()"> 389<!-- --> 390</a> 391<ul class="blockList"> 392<li class="blockList"> 393<h4>values</h4> 394<pre>public static <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a>[] values()</pre> 395<div class="block">Returns an array containing the constants of this enum type, in 396the order they are declared. This method may be used to iterate 397over the constants as follows: 398<pre> 399for (JsonGenerator.Feature c : JsonGenerator.Feature.values()) 400 System.out.println(c); 401</pre></div> 402<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in 403the order they are declared</dd></dl> 404</li> 405</ul> 406<a name="valueOf(java.lang.String)"> 407<!-- --> 408</a> 409<ul class="blockList"> 410<li class="blockList"> 411<h4>valueOf</h4> 412<pre>public static <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> valueOf(<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)</pre> 413<div class="block">Returns the enum constant of this type with the specified name. 414The string must match <i>exactly</i> an identifier used to declare an 415enum constant in this type. (Extraneous whitespace characters are 416not permitted.)</div> 417<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd> 418<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd> 419<dt><span class="strong">Throws:</span></dt> 420<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this enum type has no constant 421with the specified name</dd> 422<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the argument is null</dd></dl> 423</li> 424</ul> 425<a name="collectDefaults()"> 426<!-- --> 427</a> 428<ul class="blockList"> 429<li class="blockList"> 430<h4>collectDefaults</h4> 431<pre>public static int collectDefaults()</pre> 432<div class="block">Method that calculates bit set (flags) of all features that 433 are enabled by default.</div> 434</li> 435</ul> 436<a name="enabledByDefault()"> 437<!-- --> 438</a> 439<ul class="blockList"> 440<li class="blockList"> 441<h4>enabledByDefault</h4> 442<pre>public boolean enabledByDefault()</pre> 443</li> 444</ul> 445<a name="getMask()"> 446<!-- --> 447</a> 448<ul class="blockListLast"> 449<li class="blockList"> 450<h4>getMask</h4> 451<pre>public int getMask()</pre> 452</li> 453</ul> 454</li> 455</ul> 456</li> 457</ul> 458</div> 459</div> 460<!-- ========= END OF CLASS DATA ========= --> 461<!-- ======= START OF BOTTOM NAVBAR ====== --> 462<div class="bottomNav"><a name="navbar_bottom"> 463<!-- --> 464</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 465<!-- --> 466</a> 467<ul class="navList" title="Navigation"> 468<li><a href="../../../overview-summary.html">Overview</a></li> 469<li><a href="package-summary.html">Package</a></li> 470<li class="navBarCell1Rev">Class</li> 471<li><a href="class-use/JsonGenerator.Feature.html">Use</a></li> 472<li><a href="package-tree.html">Tree</a></li> 473<li><a href="../../../deprecated-list.html">Deprecated</a></li> 474<li><a href="../../../index-all.html">Index</a></li> 475<li><a href="../../../help-doc.html">Help</a></li> 476</ul> 477</div> 478<div class="subNav"> 479<ul class="navList"> 480<li><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 481<li><a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 482</ul> 483<ul class="navList"> 484<li><a href="../../../index.html?org/codehaus/jackson/JsonGenerator.Feature.html" target="_top">Frames</a></li> 485<li><a href="JsonGenerator.Feature.html" target="_top">No Frames</a></li> 486</ul> 487<ul class="navList" id="allclasses_navbar_bottom"> 488<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 489</ul> 490<div> 491<script type="text/javascript"><!-- 492 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 493 if(window==top) { 494 allClassesLink.style.display = "block"; 495 } 496 else { 497 allClassesLink.style.display = "none"; 498 } 499 //--> 500</script> 501</div> 502<div> 503<ul class="subNavList"> 504<li>Summary: </li> 505<li>Nested | </li> 506<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 507<li>Field | </li> 508<li><a href="#method_summary">Method</a></li> 509</ul> 510<ul class="subNavList"> 511<li>Detail: </li> 512<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 513<li>Field | </li> 514<li><a href="#method_detail">Method</a></li> 515</ul> 516</div> 517<a name="skip-navbar_bottom"> 518<!-- --> 519</a></div> 520<!-- ======== END OF BOTTOM NAVBAR ======= --> 521</body> 522</html> 523