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:21 PDT 2013 -->
6<title>JsonParser.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="JsonParser.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/JsonParser.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/JsonParser.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../org/codehaus/jackson/JsonParser.NumberType.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/JsonParser.Feature.html" target="_top">Frames</a></li>
44<li><a href="JsonParser.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:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li><a href="#enum_constant_summary">Enum Constants</a>&nbsp;|&nbsp;</li>
66<li>Field&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li><a href="#enum_constant_detail">Enum Constants</a>&nbsp;|&nbsp;</li>
72<li>Field&nbsp;|&nbsp;</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 JsonParser.Feature" class="title">Enum JsonParser.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>&lt;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>&gt;</li>
91<li>
92<ul class="inheritance">
93<li>org.codehaus.jackson.JsonParser.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>&lt;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>&gt;</dd>
105</dl>
106<dl>
107<dt>Enclosing class:</dt>
108<dd><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></dd>
109</dl>
110<hr>
111<br>
112<pre>public static enum <span class="strong">JsonParser.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>&lt;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>&gt;</pre>
114<div class="block">Enumeration that defines all togglable features for parsers.</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">&nbsp;</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/JsonParser.Feature.html#ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER">ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER</a></strong></code>
134<div class="block">Feature that can be enabled to accept quoting of all character
135 using backslash qooting mechanism: if not enabled, only characters
136 that are explicitly listed by JSON specification can be thus
137 escaped (see JSON spec for small list of these characters)</div>
138</td>
139</tr>
140<tr class="rowColor">
141<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#ALLOW_COMMENTS">ALLOW_COMMENTS</a></strong></code>
142<div class="block">Feature that determines whether parser will allow use
143 of Java/C++ style comments (both '/'+'*' and
144 '//' varieties) within parsed content or not.</div>
145</td>
146</tr>
147<tr class="altColor">
148<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#ALLOW_NON_NUMERIC_NUMBERS">ALLOW_NON_NUMERIC_NUMBERS</a></strong></code>
149<div class="block">Feature that allows parser to recognize set of
150 "Not-a-Number" (NaN) tokens as legal floating number
151 values (similar to how many other data formats and
152 programming language source code allows it).</div>
153</td>
154</tr>
155<tr class="rowColor">
156<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#ALLOW_NUMERIC_LEADING_ZEROS">ALLOW_NUMERIC_LEADING_ZEROS</a></strong></code>
157<div class="block">Feature that determines whether parser will allow
158 JSON integral numbers to start with additional (ignorable)
159 zeroes (like: 000001).</div>
160</td>
161</tr>
162<tr class="altColor">
163<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#ALLOW_SINGLE_QUOTES">ALLOW_SINGLE_QUOTES</a></strong></code>
164<div class="block">Feature that determines whether parser will allow use
165 of single quotes (apostrophe, character '\'') for
166 quoting Strings (names and String values).</div>
167</td>
168</tr>
169<tr class="rowColor">
170<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#ALLOW_UNQUOTED_CONTROL_CHARS">ALLOW_UNQUOTED_CONTROL_CHARS</a></strong></code>
171<div class="block">Feature that determines whether parser will allow
172 JSON Strings to contain unquoted control characters
173 (ASCII characters with value less than 32, including
174 tab and line feed characters) or not.</div>
175</td>
176</tr>
177<tr class="altColor">
178<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#ALLOW_UNQUOTED_FIELD_NAMES">ALLOW_UNQUOTED_FIELD_NAMES</a></strong></code>
179<div class="block">Feature that determines whether parser will allow use
180 of unquoted field names (which is allowed by Javascript,
181 but not by JSON specification).</div>
182</td>
183</tr>
184<tr class="rowColor">
185<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE">AUTO_CLOSE_SOURCE</a></strong></code>
186<div class="block">Feature that determines whether parser will automatically
187 close underlying input source that is NOT owned by the
188 parser.</div>
189</td>
190</tr>
191<tr class="altColor">
192<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#CANONICALIZE_FIELD_NAMES">CANONICALIZE_FIELD_NAMES</a></strong></code>
193<div class="block">Feature that determines whether JSON object field names are
194 to be canonicalized (details of how canonicalization is done
195 then further specified by
196 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#INTERN_FIELD_NAMES"><code>INTERN_FIELD_NAMES</code></a>).</div>
197</td>
198</tr>
199<tr class="rowColor">
200<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#INTERN_FIELD_NAMES">INTERN_FIELD_NAMES</a></strong></code>
201<div class="block">Feature that determines whether JSON object field names are
202 to be canonicalized using <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#intern()" title="class or interface in java.lang"><code>String.intern()</code></a> or not:
203 if enabled, all field names will be intern()ed (and caller
204 can count on this being true for all such names); if disabled,
205 no intern()ing is done.</div>
206</td>
207</tr>
208</table>
209</li>
210</ul>
211<!-- ========== METHOD SUMMARY =========== -->
212<ul class="blockList">
213<li class="blockList"><a name="method_summary">
214<!--   -->
215</a>
216<h3>Method Summary</h3>
217<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
218<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
219<tr>
220<th class="colFirst" scope="col">Modifier and Type</th>
221<th class="colLast" scope="col">Method and Description</th>
222</tr>
223<tr class="altColor">
224<td class="colFirst"><code>static int</code></td>
225<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#collectDefaults()">collectDefaults</a></strong>()</code>
226<div class="block">Method that calculates bit set (flags) of all features that
227 are enabled by default.</div>
228</td>
229</tr>
230<tr class="rowColor">
231<td class="colFirst"><code>boolean</code></td>
232<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#enabledByDefault()">enabledByDefault</a></strong>()</code>&nbsp;</td>
233</tr>
234<tr class="altColor">
235<td class="colFirst"><code>boolean</code></td>
236<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#enabledIn(int)">enabledIn</a></strong>(int&nbsp;flags)</code>&nbsp;</td>
237</tr>
238<tr class="rowColor">
239<td class="colFirst"><code>int</code></td>
240<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#getMask()">getMask</a></strong>()</code>&nbsp;</td>
241</tr>
242<tr class="altColor">
243<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a></code></td>
244<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.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>&nbsp;name)</code>
245<div class="block">Returns the enum constant of this type with the specified name.</div>
246</td>
247</tr>
248<tr class="rowColor">
249<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>[]</code></td>
250<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.Feature.html#values()">values</a></strong>()</code>
251<div class="block">Returns an array containing the constants of this enum type, in
252the order they are declared.</div>
253</td>
254</tr>
255</table>
256<ul class="blockList">
257<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum">
258<!--   -->
259</a>
260<h3>Methods inherited from class&nbsp;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>
261<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>
262</ul>
263<ul class="blockList">
264<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
265<!--   -->
266</a>
267<h3>Methods inherited from class&nbsp;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>
268<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>
269</ul>
270</li>
271</ul>
272</li>
273</ul>
274</div>
275<div class="details">
276<ul class="blockList">
277<li class="blockList">
278<!-- ============ ENUM CONSTANT DETAIL =========== -->
279<ul class="blockList">
280<li class="blockList"><a name="enum_constant_detail">
281<!--   -->
282</a>
283<h3>Enum Constant Detail</h3>
284<a name="AUTO_CLOSE_SOURCE">
285<!--   -->
286</a>
287<ul class="blockList">
288<li class="blockList">
289<h4>AUTO_CLOSE_SOURCE</h4>
290<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> AUTO_CLOSE_SOURCE</pre>
291<div class="block">Feature that determines whether parser will automatically
292 close underlying input source that is NOT owned by the
293 parser. If disabled, calling application has to separately
294 close the underlying <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> and <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a>
295 instances used to create the parser. If enabled, parser
296 will handle closing, as long as parser itself gets closed:
297 this happens when end-of-input is encountered, or parser
298 is closed by a call to <a href="../../../org/codehaus/jackson/JsonParser.html#close()"><code>JsonParser.close()</code></a>.
299<p>
300 Feature is enabled by default.</div>
301</li>
302</ul>
303<a name="ALLOW_COMMENTS">
304<!--   -->
305</a>
306<ul class="blockList">
307<li class="blockList">
308<h4>ALLOW_COMMENTS</h4>
309<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_COMMENTS</pre>
310<div class="block">Feature that determines whether parser will allow use
311 of Java/C++ style comments (both '/'+'*' and
312 '//' varieties) within parsed content or not.
313<p>
314 Since JSON specification does not mention comments as legal
315 construct,
316 this is a non-standard feature; however, in the wild
317 this is extensively used. As such, feature is
318 <b>disabled by default</b> for parsers and must be
319 explicitly enabled (via factory or parser instance).
320<p>
321 This feature can be changed for parser instances.</div>
322</li>
323</ul>
324<a name="ALLOW_UNQUOTED_FIELD_NAMES">
325<!--   -->
326</a>
327<ul class="blockList">
328<li class="blockList">
329<h4>ALLOW_UNQUOTED_FIELD_NAMES</h4>
330<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_UNQUOTED_FIELD_NAMES</pre>
331<div class="block">Feature that determines whether parser will allow use
332 of unquoted field names (which is allowed by Javascript,
333 but not by JSON specification).
334<p>
335 Since JSON specification requires use of double quotes for
336 field names,
337 this is a non-standard feature, and as such disabled by
338 default.
339<p>
340 This feature can be changed for parser instances.</div>
341<dl><dt><span class="strong">Since:</span></dt>
342  <dd>1.2</dd></dl>
343</li>
344</ul>
345<a name="ALLOW_SINGLE_QUOTES">
346<!--   -->
347</a>
348<ul class="blockList">
349<li class="blockList">
350<h4>ALLOW_SINGLE_QUOTES</h4>
351<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_SINGLE_QUOTES</pre>
352<div class="block">Feature that determines whether parser will allow use
353 of single quotes (apostrophe, character '\'') for
354 quoting Strings (names and String values). If so,
355 this is in addition to other acceptabl markers.
356 but not by JSON specification).
357<p>
358 Since JSON specification requires use of double quotes for
359 field names,
360 this is a non-standard feature, and as such disabled by
361 default.
362<p>
363 This feature can be changed for parser instances.</div>
364<dl><dt><span class="strong">Since:</span></dt>
365  <dd>1.3</dd></dl>
366</li>
367</ul>
368<a name="ALLOW_UNQUOTED_CONTROL_CHARS">
369<!--   -->
370</a>
371<ul class="blockList">
372<li class="blockList">
373<h4>ALLOW_UNQUOTED_CONTROL_CHARS</h4>
374<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_UNQUOTED_CONTROL_CHARS</pre>
375<div class="block">Feature that determines whether parser will allow
376 JSON Strings to contain unquoted control characters
377 (ASCII characters with value less than 32, including
378 tab and line feed characters) or not.
379 If feature is set false, an exception is thrown if such a
380 character is encountered.
381<p>
382 Since JSON specification requires quoting for all control characters,
383 this is a non-standard feature, and as such disabled by default.
384<p>
385 This feature can be changed for parser instances.</div>
386<dl><dt><span class="strong">Since:</span></dt>
387  <dd>1.4</dd></dl>
388</li>
389</ul>
390<a name="ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER">
391<!--   -->
392</a>
393<ul class="blockList">
394<li class="blockList">
395<h4>ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER</h4>
396<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER</pre>
397<div class="block">Feature that can be enabled to accept quoting of all character
398 using backslash qooting mechanism: if not enabled, only characters
399 that are explicitly listed by JSON specification can be thus
400 escaped (see JSON spec for small list of these characters)
401<p>
402 Since JSON specification requires quoting for all control characters,
403 this is a non-standard feature, and as such disabled by default.
404<p>
405 This feature can be changed for parser instances.</div>
406<dl><dt><span class="strong">Since:</span></dt>
407  <dd>1.6</dd></dl>
408</li>
409</ul>
410<a name="ALLOW_NUMERIC_LEADING_ZEROS">
411<!--   -->
412</a>
413<ul class="blockList">
414<li class="blockList">
415<h4>ALLOW_NUMERIC_LEADING_ZEROS</h4>
416<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_NUMERIC_LEADING_ZEROS</pre>
417<div class="block">Feature that determines whether parser will allow
418 JSON integral numbers to start with additional (ignorable)
419 zeroes (like: 000001). If enabled, no exception is thrown, and extra
420 nulls are silently ignored (and not included in textual representation
421 exposed via <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a>).
422<p>
423 Since JSON specification does not allow leading zeroes,
424 this is a non-standard feature, and as such disabled by default.
425<p>
426 This feature can be changed for parser instances.</div>
427<dl><dt><span class="strong">Since:</span></dt>
428  <dd>1.8</dd></dl>
429</li>
430</ul>
431<a name="ALLOW_NON_NUMERIC_NUMBERS">
432<!--   -->
433</a>
434<ul class="blockList">
435<li class="blockList">
436<h4>ALLOW_NON_NUMERIC_NUMBERS</h4>
437<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> ALLOW_NON_NUMERIC_NUMBERS</pre>
438<div class="block">Feature that allows parser to recognize set of
439 "Not-a-Number" (NaN) tokens as legal floating number
440 values (similar to how many other data formats and
441 programming language source code allows it).
442 Specific subset contains values that
443 <a href="http://www.w3.org/TR/xmlschema-2/">XML Schema</a>
444 (see section 3.2.4.1, Lexical Representation)
445 allows (tokens are quoted contents, not including quotes):
446<ul>
447  <li>"INF" (for positive infinity), as well as alias of "Infinity"
448  <li>"-INF" (for negative infinity), alias "-Infinity"
449  <li>"NaN" (for other not-a-numbers, like result of division by zero)
450</ul></div>
451</li>
452</ul>
453<a name="INTERN_FIELD_NAMES">
454<!--   -->
455</a>
456<ul class="blockList">
457<li class="blockList">
458<h4>INTERN_FIELD_NAMES</h4>
459<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> INTERN_FIELD_NAMES</pre>
460<div class="block">Feature that determines whether JSON object field names are
461 to be canonicalized using <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true#intern()" title="class or interface in java.lang"><code>String.intern()</code></a> or not:
462 if enabled, all field names will be intern()ed (and caller
463 can count on this being true for all such names); if disabled,
464 no intern()ing is done. There may still be basic
465 canonicalization (that is, same String will be used to represent
466 all identical object property names for a single document).
467<p>
468 Note: this setting only has effect if
469 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#CANONICALIZE_FIELD_NAMES"><code>CANONICALIZE_FIELD_NAMES</code></a> is true -- otherwise no
470 canonicalization of any sort is done.</div>
471<dl><dt><span class="strong">Since:</span></dt>
472  <dd>1.3</dd></dl>
473</li>
474</ul>
475<a name="CANONICALIZE_FIELD_NAMES">
476<!--   -->
477</a>
478<ul class="blockListLast">
479<li class="blockList">
480<h4>CANONICALIZE_FIELD_NAMES</h4>
481<pre>public static final&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> CANONICALIZE_FIELD_NAMES</pre>
482<div class="block">Feature that determines whether JSON object field names are
483 to be canonicalized (details of how canonicalization is done
484 then further specified by
485 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#INTERN_FIELD_NAMES"><code>INTERN_FIELD_NAMES</code></a>).</div>
486<dl><dt><span class="strong">Since:</span></dt>
487  <dd>1.5</dd></dl>
488</li>
489</ul>
490</li>
491</ul>
492<!-- ============ METHOD DETAIL ========== -->
493<ul class="blockList">
494<li class="blockList"><a name="method_detail">
495<!--   -->
496</a>
497<h3>Method Detail</h3>
498<a name="values()">
499<!--   -->
500</a>
501<ul class="blockList">
502<li class="blockList">
503<h4>values</h4>
504<pre>public static&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>[]&nbsp;values()</pre>
505<div class="block">Returns an array containing the constants of this enum type, in
506the order they are declared.  This method may be used to iterate
507over the constants as follows:
508<pre>
509for (JsonParser.Feature c : JsonParser.Feature.values())
510&nbsp;   System.out.println(c);
511</pre></div>
512<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in
513the order they are declared</dd></dl>
514</li>
515</ul>
516<a name="valueOf(java.lang.String)">
517<!--   -->
518</a>
519<ul class="blockList">
520<li class="blockList">
521<h4>valueOf</h4>
522<pre>public static&nbsp;<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>&nbsp;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>&nbsp;name)</pre>
523<div class="block">Returns the enum constant of this type with the specified name.
524The string must match <i>exactly</i> an identifier used to declare an
525enum constant in this type.  (Extraneous whitespace characters are
526not permitted.)</div>
527<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd>
528<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd>
529<dt><span class="strong">Throws:</span></dt>
530<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
531with the specified name</dd>
532<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>
533</li>
534</ul>
535<a name="collectDefaults()">
536<!--   -->
537</a>
538<ul class="blockList">
539<li class="blockList">
540<h4>collectDefaults</h4>
541<pre>public static&nbsp;int&nbsp;collectDefaults()</pre>
542<div class="block">Method that calculates bit set (flags) of all features that
543 are enabled by default.</div>
544</li>
545</ul>
546<a name="enabledByDefault()">
547<!--   -->
548</a>
549<ul class="blockList">
550<li class="blockList">
551<h4>enabledByDefault</h4>
552<pre>public&nbsp;boolean&nbsp;enabledByDefault()</pre>
553</li>
554</ul>
555<a name="enabledIn(int)">
556<!--   -->
557</a>
558<ul class="blockList">
559<li class="blockList">
560<h4>enabledIn</h4>
561<pre>public&nbsp;boolean&nbsp;enabledIn(int&nbsp;flags)</pre>
562</li>
563</ul>
564<a name="getMask()">
565<!--   -->
566</a>
567<ul class="blockListLast">
568<li class="blockList">
569<h4>getMask</h4>
570<pre>public&nbsp;int&nbsp;getMask()</pre>
571</li>
572</ul>
573</li>
574</ul>
575</li>
576</ul>
577</div>
578</div>
579<!-- ========= END OF CLASS DATA ========= -->
580<!-- ======= START OF BOTTOM NAVBAR ====== -->
581<div class="bottomNav"><a name="navbar_bottom">
582<!--   -->
583</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
584<!--   -->
585</a>
586<ul class="navList" title="Navigation">
587<li><a href="../../../overview-summary.html">Overview</a></li>
588<li><a href="package-summary.html">Package</a></li>
589<li class="navBarCell1Rev">Class</li>
590<li><a href="class-use/JsonParser.Feature.html">Use</a></li>
591<li><a href="package-tree.html">Tree</a></li>
592<li><a href="../../../deprecated-list.html">Deprecated</a></li>
593<li><a href="../../../index-all.html">Index</a></li>
594<li><a href="../../../help-doc.html">Help</a></li>
595</ul>
596</div>
597<div class="subNav">
598<ul class="navList">
599<li><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li>
600<li><a href="../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson"><span class="strong">Next Class</span></a></li>
601</ul>
602<ul class="navList">
603<li><a href="../../../index.html?org/codehaus/jackson/JsonParser.Feature.html" target="_top">Frames</a></li>
604<li><a href="JsonParser.Feature.html" target="_top">No Frames</a></li>
605</ul>
606<ul class="navList" id="allclasses_navbar_bottom">
607<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
608</ul>
609<div>
610<script type="text/javascript"><!--
611  allClassesLink = document.getElementById("allclasses_navbar_bottom");
612  if(window==top) {
613    allClassesLink.style.display = "block";
614  }
615  else {
616    allClassesLink.style.display = "none";
617  }
618  //-->
619</script>
620</div>
621<div>
622<ul class="subNavList">
623<li>Summary:&nbsp;</li>
624<li>Nested&nbsp;|&nbsp;</li>
625<li><a href="#enum_constant_summary">Enum Constants</a>&nbsp;|&nbsp;</li>
626<li>Field&nbsp;|&nbsp;</li>
627<li><a href="#method_summary">Method</a></li>
628</ul>
629<ul class="subNavList">
630<li>Detail:&nbsp;</li>
631<li><a href="#enum_constant_detail">Enum Constants</a>&nbsp;|&nbsp;</li>
632<li>Field&nbsp;|&nbsp;</li>
633<li><a href="#method_detail">Method</a></li>
634</ul>
635</div>
636<a name="skip-navbar_bottom">
637<!--   -->
638</a></div>
639<!-- ======== END OF BOTTOM NAVBAR ======= -->
640</body>
641</html>
642