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 (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 (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.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/JsonParseException.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../org/codehaus/jackson/JsonParser.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/JsonParser.html" target="_top">Frames</a></li> 44<li><a href="JsonParser.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 JsonParser" class="title">Class JsonParser</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.JsonParser</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/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">JsonParserDelegate</a>, <a href="../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></dd> 104</dl> 105<hr> 106<br> 107<pre>public abstract class <span class="strong">JsonParser</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 reading 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/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a></strong></code> 136<div class="block">Enumeration that defines all togglable features for parsers.</div> 137</td> 138</tr> 139<tr class="rowColor"> 140<td class="colFirst"><code>static class </code></td> 141<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a></strong></code> 142<div class="block">Enumeration of possible "native" (optimal) types that can be 143 used for numbers.</div> 144</td> 145</tr> 146</table> 147</li> 148</ul> 149<!-- =========== FIELD SUMMARY =========== --> 150<ul class="blockList"> 151<li class="blockList"><a name="field_summary"> 152<!-- --> 153</a> 154<h3>Field Summary</h3> 155<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 156<caption><span>Fields</span><span class="tabEnd"> </span></caption> 157<tr> 158<th class="colFirst" scope="col">Modifier and Type</th> 159<th class="colLast" scope="col">Field and Description</th> 160</tr> 161<tr class="altColor"> 162<td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 163<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#_currToken">_currToken</a></strong></code> 164<div class="block">Last token retrieved via <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>, if any.</div> 165</td> 166</tr> 167<tr class="rowColor"> 168<td class="colFirst"><code>protected int</code></td> 169<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#_features">_features</a></strong></code> 170<div class="block">Bit flag composed of bits that indicate which 171 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a>s 172 are enabled.</div> 173</td> 174</tr> 175<tr class="altColor"> 176<td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 177<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#_lastClearedToken">_lastClearedToken</a></strong></code> 178<div class="block">Last cleared token, if any: that is, value that was in 179 effect when <a href="../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()"><code>clearCurrentToken()</code></a> was called.</div> 180</td> 181</tr> 182</table> 183</li> 184</ul> 185<!-- ======== CONSTRUCTOR SUMMARY ======== --> 186<ul class="blockList"> 187<li class="blockList"><a name="constructor_summary"> 188<!-- --> 189</a> 190<h3>Constructor Summary</h3> 191<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 192<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 193<tr> 194<th class="colFirst" scope="col">Modifier</th> 195<th class="colLast" scope="col">Constructor and Description</th> 196</tr> 197<tr class="altColor"> 198<td class="colFirst"><code>protected </code></td> 199<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#JsonParser()">JsonParser</a></strong>()</code> </td> 200</tr> 201<tr class="rowColor"> 202<td class="colFirst"><code>protected </code></td> 203<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#JsonParser(int)">JsonParser</a></strong>(int features)</code> </td> 204</tr> 205</table> 206</li> 207</ul> 208<!-- ========== METHOD SUMMARY =========== --> 209<ul class="blockList"> 210<li class="blockList"><a name="method_summary"> 211<!-- --> 212</a> 213<h3>Method Summary</h3> 214<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 215<caption><span>Methods</span><span class="tabEnd"> </span></caption> 216<tr> 217<th class="colFirst" scope="col">Modifier and Type</th> 218<th class="colLast" scope="col">Method and Description</th> 219</tr> 220<tr class="altColor"> 221<td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></td> 222<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#_constructError(java.lang.String)">_constructError</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> msg)</code> 223<div class="block">Helper method for constructing <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a>s 224 based on current state of the parser</div> 225</td> 226</tr> 227<tr class="rowColor"> 228<td class="colFirst"><code>boolean</code></td> 229<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.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> 230<div class="block">Method that can be used to verify that given schema can be used with 231 this parser (using <a href="../../../org/codehaus/jackson/JsonParser.html#setSchema(org.codehaus.jackson.FormatSchema)"><code>setSchema(org.codehaus.jackson.FormatSchema)</code></a>).</div> 232</td> 233</tr> 234<tr class="altColor"> 235<td class="colFirst"><code>void</code></td> 236<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()">clearCurrentToken</a></strong>()</code> 237<div class="block">Method called to "consume" the current token by effectively 238 removing it so that <a href="../../../org/codehaus/jackson/JsonParser.html#hasCurrentToken()"><code>hasCurrentToken()</code></a> returns false, and 239 <a href="../../../org/codehaus/jackson/JsonParser.html#getCurrentToken()"><code>getCurrentToken()</code></a> null).</div> 240</td> 241</tr> 242<tr class="rowColor"> 243<td class="colFirst"><code>abstract void</code></td> 244<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#close()">close</a></strong>()</code> 245<div class="block">Closes the parser so that no further iteration or data access 246 can be made; will also close the underlying input source 247 if parser either <b>owns</b> the input source, or feature 248 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled.</div> 249</td> 250</tr> 251<tr class="altColor"> 252<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 253<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)">configure</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 254 boolean state)</code> 255<div class="block">Method for enabling or disabling specified feature 256 (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> 257</td> 258</tr> 259<tr class="rowColor"> 260<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 261<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#disable(org.codehaus.jackson.JsonParser.Feature)">disable</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> 262<div class="block">Method for disabling specified feature 263 (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> 264</td> 265</tr> 266<tr class="altColor"> 267<td class="colFirst"><code>void</code></td> 268<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#disableFeature(org.codehaus.jackson.JsonParser.Feature)">disableFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> 269<div class="block"><strong>Deprecated.</strong> 270<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#disable(org.codehaus.jackson.JsonParser.Feature)"><code>disable(Feature)</code></a> instead</i></div> 271</div> 272</td> 273</tr> 274<tr class="rowColor"> 275<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 276<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#enable(org.codehaus.jackson.JsonParser.Feature)">enable</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> 277<div class="block">Method for enabling specified parser feature 278 (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> 279</td> 280</tr> 281<tr class="altColor"> 282<td class="colFirst"><code>void</code></td> 283<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#enableFeature(org.codehaus.jackson.JsonParser.Feature)">enableFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> 284<div class="block"><strong>Deprecated.</strong> 285<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#enable(org.codehaus.jackson.JsonParser.Feature)"><code>enable(Feature)</code></a> instead</i></div> 286</div> 287</td> 288</tr> 289<tr class="rowColor"> 290<td class="colFirst"><code>abstract <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></code></td> 291<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getBigIntegerValue()">getBigIntegerValue</a></strong>()</code> 292<div class="block">Numeric accessor that can be called when the current 293 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 294 it can not be used as a Java long primitive type due to its 295 magnitude.</div> 296</td> 297</tr> 298<tr class="altColor"> 299<td class="colFirst"><code>byte[]</code></td> 300<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getBinaryValue()">getBinaryValue</a></strong>()</code> 301<div class="block">Convenience alternative to <a href="../../../org/codehaus/jackson/JsonParser.html#getBinaryValue(org.codehaus.jackson.Base64Variant)"><code>getBinaryValue(Base64Variant)</code></a> 302 that defaults to using 303 <a href="../../../org/codehaus/jackson/Base64Variants.html#getDefaultVariant()"><code>Base64Variants.getDefaultVariant()</code></a> as the default encoding.</div> 304</td> 305</tr> 306<tr class="rowColor"> 307<td class="colFirst"><code>abstract byte[]</code></td> 308<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getBinaryValue(org.codehaus.jackson.Base64Variant)">getBinaryValue</a></strong>(<a href="../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant)</code> 309<div class="block">Method that can be used to read (and consume -- results 310 may not be accessible using other methods after the call) 311 base64-encoded binary data 312 included in the current textual JSON value.</div> 313</td> 314</tr> 315<tr class="altColor"> 316<td class="colFirst"><code>boolean</code></td> 317<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getBooleanValue()">getBooleanValue</a></strong>()</code> 318<div class="block">Convenience accessor that can be called when the current 319 token is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_TRUE"><code>JsonToken.VALUE_TRUE</code></a> or 320 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_FALSE"><code>JsonToken.VALUE_FALSE</code></a>.</div> 321</td> 322</tr> 323<tr class="rowColor"> 324<td class="colFirst"><code>byte</code></td> 325<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getByteValue()">getByteValue</a></strong>()</code> 326<div class="block">Numeric accessor that can be called when the current 327 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 328 it can be expressed as a value of Java byte primitive type.</div> 329</td> 330</tr> 331<tr class="altColor"> 332<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> 333<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getCodec()">getCodec</a></strong>()</code> 334<div class="block">Accessor for <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><code>ObjectCodec</code></a> associated with this 335 parser, if any.</div> 336</td> 337</tr> 338<tr class="rowColor"> 339<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a></code></td> 340<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getCurrentLocation()">getCurrentLocation</a></strong>()</code> 341<div class="block">Method that returns location of the last processed character; 342 usually for error reporting purposes.</div> 343</td> 344</tr> 345<tr class="altColor"> 346<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 347<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getCurrentName()">getCurrentName</a></strong>()</code> 348<div class="block">Method that can be called to get the name associated with 349 the current token: for <a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a>s it will 350 be the same as what <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>getText()</code></a> returns; 351 for field values it will be preceding field name; 352 and for others (array values, root-level values) null.</div> 353</td> 354</tr> 355<tr class="rowColor"> 356<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 357<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getCurrentToken()">getCurrentToken</a></strong>()</code> 358<div class="block">Accessor to find which token parser currently points to, if any; 359 null will be returned if none.</div> 360</td> 361</tr> 362<tr class="altColor"> 363<td class="colFirst"><code>abstract <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></code></td> 364<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getDecimalValue()">getDecimalValue</a></strong>()</code> 365<div class="block">Numeric accessor that can be called when the current 366 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> or 367 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>.</div> 368</td> 369</tr> 370<tr class="rowColor"> 371<td class="colFirst"><code>abstract double</code></td> 372<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()">getDoubleValue</a></strong>()</code> 373<div class="block">Numeric accessor that can be called when the current 374 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 375 it can be expressed as a Java double primitive type.</div> 376</td> 377</tr> 378<tr class="altColor"> 379<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> 380<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getEmbeddedObject()">getEmbeddedObject</a></strong>()</code> 381<div class="block">Accessor that can be called if (and only if) the current token 382 is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT"><code>JsonToken.VALUE_EMBEDDED_OBJECT</code></a>.</div> 383</td> 384</tr> 385<tr class="rowColor"> 386<td class="colFirst"><code>abstract float</code></td> 387<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getFloatValue()">getFloatValue</a></strong>()</code> 388<div class="block">Numeric accessor that can be called when the current 389 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 390 it can be expressed as a Java float primitive type.</div> 391</td> 392</tr> 393<tr class="altColor"> 394<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> 395<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getInputSource()">getInputSource</a></strong>()</code> 396<div class="block">Method that can be used to get access to object that is used 397 to access input being parsed; this is usually either 398 <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> or <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>, depending on what 399 parser was constructed with.</div> 400</td> 401</tr> 402<tr class="rowColor"> 403<td class="colFirst"><code>abstract int</code></td> 404<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getIntValue()">getIntValue</a></strong>()</code> 405<div class="block">Numeric accessor that can be called when the current 406 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 407 it can be expressed as a value of Java int primitive type.</div> 408</td> 409</tr> 410<tr class="altColor"> 411<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 412<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getLastClearedToken()">getLastClearedToken</a></strong>()</code> 413<div class="block">Method that can be called to get the last token that was 414 cleared using <a href="../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()"><code>clearCurrentToken()</code></a>.</div> 415</td> 416</tr> 417<tr class="rowColor"> 418<td class="colFirst"><code>abstract long</code></td> 419<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getLongValue()">getLongValue</a></strong>()</code> 420<div class="block">Numeric accessor that can be called when the current 421 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 422 it can be expressed as a Java long primitive type.</div> 423</td> 424</tr> 425<tr class="altColor"> 426<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a></code></td> 427<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getNumberType()">getNumberType</a></strong>()</code> 428<div class="block">If current token is of type 429 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> or 430 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>, returns 431 one of <a href="../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson"><code>JsonParser.NumberType</code></a> constants; otherwise returns null.</div> 432</td> 433</tr> 434<tr class="rowColor"> 435<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td> 436<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getNumberValue()">getNumberValue</a></strong>()</code> 437<div class="block">Generic number value accessor method that will work for 438 all kinds of numeric values.</div> 439</td> 440</tr> 441<tr class="altColor"> 442<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a></code></td> 443<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getParsingContext()">getParsingContext</a></strong>()</code> 444<div class="block">Method that can be used to access current parsing context reader 445 is in.</div> 446</td> 447</tr> 448<tr class="rowColor"> 449<td class="colFirst"><code>short</code></td> 450<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getShortValue()">getShortValue</a></strong>()</code> 451<div class="block">Numeric accessor that can be called when the current 452 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 453 it can be expressed as a value of Java short primitive type.</div> 454</td> 455</tr> 456<tr class="altColor"> 457<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 458<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getText()">getText</a></strong>()</code> 459<div class="block">Method for accessing textual representation of the current token; 460 if no current token (before first call to <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>, or 461 after encountering end-of-input), returns null.</div> 462</td> 463</tr> 464<tr class="rowColor"> 465<td class="colFirst"><code>abstract char[]</code></td> 466<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()">getTextCharacters</a></strong>()</code> 467<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>getText()</code></a>, but that will return 468 underlying (unmodifiable) character array that contains 469 textual value, instead of constructing a String object 470 to contain this information.</div> 471</td> 472</tr> 473<tr class="altColor"> 474<td class="colFirst"><code>abstract int</code></td> 475<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getTextLength()">getTextLength</a></strong>()</code> 476<div class="block">Accessor used with <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a>, to know length 477 of String stored in returned buffer.</div> 478</td> 479</tr> 480<tr class="rowColor"> 481<td class="colFirst"><code>abstract int</code></td> 482<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getTextOffset()">getTextOffset</a></strong>()</code> 483<div class="block">Accessor used with <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a>, to know offset 484 of the first text content character within buffer.</div> 485</td> 486</tr> 487<tr class="altColor"> 488<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a></code></td> 489<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getTokenLocation()">getTokenLocation</a></strong>()</code> 490<div class="block">Method that return the <b>starting</b> location of the current 491 token; that is, position of the first character from input 492 that starts the current token.</div> 493</td> 494</tr> 495<tr class="rowColor"> 496<td class="colFirst"><code>boolean</code></td> 497<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsBoolean()">getValueAsBoolean</a></strong>()</code> 498<div class="block">Method that will try to convert value of current token to a 499 <b>boolean</b>.</div> 500</td> 501</tr> 502<tr class="altColor"> 503<td class="colFirst"><code>boolean</code></td> 504<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsBoolean(boolean)">getValueAsBoolean</a></strong>(boolean defaultValue)</code> 505<div class="block">Method that will try to convert value of current token to a 506 <b>boolean</b>.</div> 507</td> 508</tr> 509<tr class="rowColor"> 510<td class="colFirst"><code>double</code></td> 511<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsDouble()">getValueAsDouble</a></strong>()</code> 512<div class="block">Method that will try to convert value of current token to a Java 513 <b>double</b>.</div> 514</td> 515</tr> 516<tr class="altColor"> 517<td class="colFirst"><code>double</code></td> 518<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsDouble(double)">getValueAsDouble</a></strong>(double defaultValue)</code> 519<div class="block">Method that will try to convert value of current token to a 520 Java <b>double</b>.</div> 521</td> 522</tr> 523<tr class="rowColor"> 524<td class="colFirst"><code>int</code></td> 525<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsInt()">getValueAsInt</a></strong>()</code> 526<div class="block">Method that will try to convert value of current token to a 527 <b>int</b>.</div> 528</td> 529</tr> 530<tr class="altColor"> 531<td class="colFirst"><code>int</code></td> 532<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsInt(int)">getValueAsInt</a></strong>(int defaultValue)</code> 533<div class="block">Method that will try to convert value of current token to a 534 <b>int</b>.</div> 535</td> 536</tr> 537<tr class="rowColor"> 538<td class="colFirst"><code>long</code></td> 539<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsLong()">getValueAsLong</a></strong>()</code> 540<div class="block">Method that will try to convert value of current token to a 541 <b>long</b>.</div> 542</td> 543</tr> 544<tr class="altColor"> 545<td class="colFirst"><code>long</code></td> 546<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#getValueAsLong(long)">getValueAsLong</a></strong>(long defaultValue)</code> 547<div class="block">Method that will try to convert value of current token to a 548 <b>long</b>.</div> 549</td> 550</tr> 551<tr class="rowColor"> 552<td class="colFirst"><code>boolean</code></td> 553<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#hasCurrentToken()">hasCurrentToken</a></strong>()</code> 554<div class="block">Method for checking whether parser currently points to 555 a token (and data for that token is available).</div> 556</td> 557</tr> 558<tr class="altColor"> 559<td class="colFirst"><code>boolean</code></td> 560<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#hasTextCharacters()">hasTextCharacters</a></strong>()</code> 561<div class="block">Method that can be used to determine whether calling of 562 <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a> would be the most efficient 563 way to access textual content for the event parser currently 564 points to.</div> 565</td> 566</tr> 567<tr class="rowColor"> 568<td class="colFirst"><code>abstract boolean</code></td> 569<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#isClosed()">isClosed</a></strong>()</code> 570<div class="block">Method that can be called to determine whether this parser 571 is closed or not.</div> 572</td> 573</tr> 574<tr class="altColor"> 575<td class="colFirst"><code>boolean</code></td> 576<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)">isEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> 577<div class="block">Method for checking whether specified <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> 578 is enabled.</div> 579</td> 580</tr> 581<tr class="rowColor"> 582<td class="colFirst"><code>boolean</code></td> 583<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#isExpectedStartArrayToken()">isExpectedStartArrayToken</a></strong>()</code> 584<div class="block">Specialized accessor that can be used to verify that the current 585 token indicates start array (usually meaning that current token 586 is <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a>) when start array is expected.</div> 587</td> 588</tr> 589<tr class="altColor"> 590<td class="colFirst"><code>boolean</code></td> 591<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#isFeatureEnabled(org.codehaus.jackson.JsonParser.Feature)">isFeatureEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> 592<div class="block"><strong>Deprecated.</strong> 593<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)"><code>isEnabled(Feature)</code></a> instead</i></div> 594</div> 595</td> 596</tr> 597<tr class="rowColor"> 598<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a></code></td> 599<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextBooleanValue()">nextBooleanValue</a></strong>()</code> 600<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 601 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_TRUE"><code>JsonToken.VALUE_TRUE</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_FALSE"><code>JsonToken.VALUE_FALSE</code></a> 602 returns matching Boolean value; otherwise return null.</div> 603</td> 604</tr> 605<tr class="altColor"> 606<td class="colFirst"><code>boolean</code></td> 607<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextFieldName(org.codehaus.jackson.SerializableString)">nextFieldName</a></strong>(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> str)</code> 608<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 609 verifies whether it is <a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a> with specified name 610 and returns result of that comparison.</div> 611</td> 612</tr> 613<tr class="rowColor"> 614<td class="colFirst"><code>int</code></td> 615<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextIntValue(int)">nextIntValue</a></strong>(int defaultValue)</code> 616<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 617 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> returns 32-bit int value; 618 otherwise returns specified default value 619 It is functionally equivalent to:</div> 620</td> 621</tr> 622<tr class="altColor"> 623<td class="colFirst"><code>long</code></td> 624<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextLongValue(long)">nextLongValue</a></strong>(long defaultValue)</code> 625<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 626 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> returns 64-bit long value; 627 otherwise returns specified default value 628 It is functionally equivalent to:</div> 629</td> 630</tr> 631<tr class="rowColor"> 632<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 633<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextTextValue()">nextTextValue</a></strong>()</code> 634<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 635 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_STRING"><code>JsonToken.VALUE_STRING</code></a> returns contained String value; 636 otherwise returns null.</div> 637</td> 638</tr> 639<tr class="altColor"> 640<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 641<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()">nextToken</a></strong>()</code> 642<div class="block">Main iteration method, which will advance stream enough 643 to determine type of the next token, if any.</div> 644</td> 645</tr> 646<tr class="rowColor"> 647<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 648<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#nextValue()">nextValue</a></strong>()</code> 649<div class="block">Iteration method that will advance stream enough 650 to determine type of the next token that is a value type 651 (including JSON Array and Object start/end markers).</div> 652</td> 653</tr> 654<tr class="altColor"> 655<td class="colFirst"><code><T> T</code></td> 656<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#readValueAs(java.lang.Class)">readValueAs</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> valueType)</code> 657<div class="block">Method to deserialize JSON content into a non-container 658 type (it can be an array type, however): typically a bean, array 659 or a wrapper type (like <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>).</div> 660</td> 661</tr> 662<tr class="rowColor"> 663<td class="colFirst"><code><T> T</code></td> 664<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#readValueAs(org.codehaus.jackson.type.TypeReference)">readValueAs</a></strong>(<a href="../../../org/codehaus/jackson/type/TypeReference.html" title="class in org.codehaus.jackson.type">TypeReference</a><?> valueTypeRef)</code> 665<div class="block">Method to deserialize JSON content into a Java type, reference 666 to which is passed as argument.</div> 667</td> 668</tr> 669<tr class="altColor"> 670<td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></td> 671<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#readValueAsTree()">readValueAsTree</a></strong>()</code> 672<div class="block">Method to deserialize JSON content into equivalent "tree model", 673 represented by root <a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson"><code>JsonNode</code></a> of resulting model.</div> 674</td> 675</tr> 676<tr class="rowColor"> 677<td class="colFirst"><code><T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T></code></td> 678<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#readValuesAs(java.lang.Class)">readValuesAs</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> valueType)</code> 679<div class="block">Method for reading sequence of Objects from parser stream, 680 all with same specified value type.</div> 681</td> 682</tr> 683<tr class="altColor"> 684<td class="colFirst"><code><T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T></code></td> 685<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#readValuesAs(org.codehaus.jackson.type.TypeReference)">readValuesAs</a></strong>(<a href="../../../org/codehaus/jackson/type/TypeReference.html" title="class in org.codehaus.jackson.type">TypeReference</a><?> valueTypeRef)</code> 686<div class="block">Method for reading sequence of Objects from parser stream, 687 all with same specified value type.</div> 688</td> 689</tr> 690<tr class="rowColor"> 691<td class="colFirst"><code>int</code></td> 692<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#releaseBuffered(java.io.OutputStream)">releaseBuffered</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out)</code> 693<div class="block">Method that can be called to push back any content that 694 has been read but not consumed by the parser.</div> 695</td> 696</tr> 697<tr class="altColor"> 698<td class="colFirst"><code>int</code></td> 699<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#releaseBuffered(java.io.Writer)">releaseBuffered</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w)</code> 700<div class="block">Method that can be called to push back any content that 701 has been read but not consumed by the parser.</div> 702</td> 703</tr> 704<tr class="rowColor"> 705<td class="colFirst"><code>abstract void</code></td> 706<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a></strong>(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> c)</code> 707<div class="block">Setter that allows defining <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><code>ObjectCodec</code></a> associated with this 708 parser, if any.</div> 709</td> 710</tr> 711<tr class="altColor"> 712<td class="colFirst"><code>void</code></td> 713<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#setFeature(org.codehaus.jackson.JsonParser.Feature, boolean)">setFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 714 boolean state)</code> 715<div class="block"><strong>Deprecated.</strong> 716<div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)"><code>configure(org.codehaus.jackson.JsonParser.Feature, boolean)</code></a> instead</i></div> 717</div> 718</td> 719</tr> 720<tr class="rowColor"> 721<td class="colFirst"><code>void</code></td> 722<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.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> 723<div class="block">Method to call to make this parser use specified schema.</div> 724</td> 725</tr> 726<tr class="altColor"> 727<td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> 728<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#skipChildren()">skipChildren</a></strong>()</code> 729<div class="block">Method that will skip all child tokens of an array or 730 object token that the parser currently points to, 731 iff stream points to 732 <a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a>.</div> 733</td> 734</tr> 735<tr class="rowColor"> 736<td class="colFirst"><code><a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td> 737<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonParser.html#version()">version</a></strong>()</code> 738<div class="block">Method called to detect version of the component that implements this interface; 739 returned version should never be null, but may return specific "not available" 740 instance (see <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a> for details).</div> 741</td> 742</tr> 743</table> 744<ul class="blockList"> 745<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 746<!-- --> 747</a> 748<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> 749<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> 750</ul> 751</li> 752</ul> 753</li> 754</ul> 755</div> 756<div class="details"> 757<ul class="blockList"> 758<li class="blockList"> 759<!-- ============ FIELD DETAIL =========== --> 760<ul class="blockList"> 761<li class="blockList"><a name="field_detail"> 762<!-- --> 763</a> 764<h3>Field Detail</h3> 765<a name="_features"> 766<!-- --> 767</a> 768<ul class="blockList"> 769<li class="blockList"> 770<h4>_features</h4> 771<pre>protected int _features</pre> 772<div class="block">Bit flag composed of bits that indicate which 773 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a>s 774 are enabled.</div> 775</li> 776</ul> 777<a name="_currToken"> 778<!-- --> 779</a> 780<ul class="blockList"> 781<li class="blockList"> 782<h4>_currToken</h4> 783<pre>protected <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> _currToken</pre> 784<div class="block">Last token retrieved via <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>, if any. 785 Null before the first call to <code>nextToken()</code>, 786 as well as if token has been explicitly cleared 787 (by call to <a href="../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()"><code>clearCurrentToken()</code></a>)</div> 788</li> 789</ul> 790<a name="_lastClearedToken"> 791<!-- --> 792</a> 793<ul class="blockListLast"> 794<li class="blockList"> 795<h4>_lastClearedToken</h4> 796<pre>protected <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> _lastClearedToken</pre> 797<div class="block">Last cleared token, if any: that is, value that was in 798 effect when <a href="../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()"><code>clearCurrentToken()</code></a> was called.</div> 799</li> 800</ul> 801</li> 802</ul> 803<!-- ========= CONSTRUCTOR DETAIL ======== --> 804<ul class="blockList"> 805<li class="blockList"><a name="constructor_detail"> 806<!-- --> 807</a> 808<h3>Constructor Detail</h3> 809<a name="JsonParser()"> 810<!-- --> 811</a> 812<ul class="blockList"> 813<li class="blockList"> 814<h4>JsonParser</h4> 815<pre>protected JsonParser()</pre> 816</li> 817</ul> 818<a name="JsonParser(int)"> 819<!-- --> 820</a> 821<ul class="blockListLast"> 822<li class="blockList"> 823<h4>JsonParser</h4> 824<pre>protected JsonParser(int features)</pre> 825</li> 826</ul> 827</li> 828</ul> 829<!-- ============ METHOD DETAIL ========== --> 830<ul class="blockList"> 831<li class="blockList"><a name="method_detail"> 832<!-- --> 833</a> 834<h3>Method Detail</h3> 835<a name="getCodec()"> 836<!-- --> 837</a> 838<ul class="blockList"> 839<li class="blockList"> 840<h4>getCodec</h4> 841<pre>public abstract <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> 842<div class="block">Accessor for <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><code>ObjectCodec</code></a> associated with this 843 parser, if any. Codec is used by <a href="../../../org/codehaus/jackson/JsonParser.html#readValueAs(java.lang.Class)"><code>readValueAs(Class)</code></a> 844 method (and its variants).</div> 845<dl><dt><span class="strong">Since:</span></dt> 846 <dd>1.3</dd></dl> 847</li> 848</ul> 849<a name="setCodec(org.codehaus.jackson.ObjectCodec)"> 850<!-- --> 851</a> 852<ul class="blockList"> 853<li class="blockList"> 854<h4>setCodec</h4> 855<pre>public abstract void setCodec(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> c)</pre> 856<div class="block">Setter that allows defining <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><code>ObjectCodec</code></a> associated with this 857 parser, if any. Codec is used by <a href="../../../org/codehaus/jackson/JsonParser.html#readValueAs(java.lang.Class)"><code>readValueAs(Class)</code></a> 858 method (and its variants).</div> 859<dl><dt><span class="strong">Since:</span></dt> 860 <dd>1.3</dd></dl> 861</li> 862</ul> 863<a name="setSchema(org.codehaus.jackson.FormatSchema)"> 864<!-- --> 865</a> 866<ul class="blockList"> 867<li class="blockList"> 868<h4>setSchema</h4> 869<pre>public void setSchema(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</pre> 870<div class="block">Method to call to make this parser use specified schema. Method must 871 be called before trying to parse any content, right after parser instance 872 has been created. 873 Note that not all parsers support schemas; and those that do usually only 874 accept specific types of schemas: ones defined for data format parser can read. 875<p> 876 If parser 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> 877 is thrown.</div> 878<dl><dt><span class="strong">Parameters:</span></dt><dd><code>schema</code> - Schema to use</dd> 879<dt><span class="strong">Throws:</span></dt> 880<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 parser does not support schema</dd><dt><span class="strong">Since:</span></dt> 881 <dd>1.8</dd></dl> 882</li> 883</ul> 884<a name="canUseSchema(org.codehaus.jackson.FormatSchema)"> 885<!-- --> 886</a> 887<ul class="blockList"> 888<li class="blockList"> 889<h4>canUseSchema</h4> 890<pre>public boolean canUseSchema(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</pre> 891<div class="block">Method that can be used to verify that given schema can be used with 892 this parser (using <a href="../../../org/codehaus/jackson/JsonParser.html#setSchema(org.codehaus.jackson.FormatSchema)"><code>setSchema(org.codehaus.jackson.FormatSchema)</code></a>).</div> 893<dl><dt><span class="strong">Parameters:</span></dt><dd><code>schema</code> - Schema to check</dd> 894<dt><span class="strong">Returns:</span></dt><dd>True if this parser can use given schema; false if not</dd><dt><span class="strong">Since:</span></dt> 895 <dd>1.8</dd></dl> 896</li> 897</ul> 898<a name="version()"> 899<!-- --> 900</a> 901<ul class="blockList"> 902<li class="blockList"> 903<h4>version</h4> 904<pre>public <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> version()</pre> 905<div class="block"><strong>Description copied from interface: <code><a href="../../../org/codehaus/jackson/Versioned.html#version()">Versioned</a></code></strong></div> 906<div class="block">Method called to detect version of the component that implements this interface; 907 returned version should never be null, but may return specific "not available" 908 instance (see <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a> for details).</div> 909<dl> 910<dt><strong>Specified by:</strong></dt> 911<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> 912<dt><span class="strong">Since:</span></dt> 913 <dd>1.6</dd></dl> 914</li> 915</ul> 916<a name="getInputSource()"> 917<!-- --> 918</a> 919<ul class="blockList"> 920<li class="blockList"> 921<h4>getInputSource</h4> 922<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> getInputSource()</pre> 923<div class="block">Method that can be used to get access to object that is used 924 to access input being parsed; this is usually either 925 <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> or <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>, depending on what 926 parser was constructed with. 927 Note that returned value may be null in some cases; including 928 case where parser implementation does not want to exposed raw 929 source to caller. 930 In cases where input has been decorated, object returned here 931 is the decorated version; this allows some level of interaction 932 between users of parser and decorator object. 933<p> 934 In general use of this accessor should be considered as 935 "last effort", i.e. only used if no other mechanism is applicable.</div> 936<dl><dt><span class="strong">Since:</span></dt> 937 <dd>1.8</dd></dl> 938</li> 939</ul> 940<a name="close()"> 941<!-- --> 942</a> 943<ul class="blockList"> 944<li class="blockList"> 945<h4>close</h4> 946<pre>public abstract void close() 947 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> 948<div class="block">Closes the parser so that no further iteration or data access 949 can be made; will also close the underlying input source 950 if parser either <b>owns</b> the input source, or feature 951 <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled. 952 Whether parser owns the input source depends on factory 953 method that was used to construct instance (so check 954 <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> for details, 955 but the general 956 idea is that if caller passes in closable resource (such 957 as <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> or <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>) parser does NOT 958 own the source; but if it passes a reference (such as 959 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io"><code>File</code></a> or <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net"><code>URL</code></a> and creates 960 stream or reader it does own them.</div> 961<dl> 962<dt><strong>Specified by:</strong></dt> 963<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> 964<dt><strong>Specified by:</strong></dt> 965<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> 966<dt><span class="strong">Throws:</span></dt> 967<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> 968</li> 969</ul> 970<a name="releaseBuffered(java.io.OutputStream)"> 971<!-- --> 972</a> 973<ul class="blockList"> 974<li class="blockList"> 975<h4>releaseBuffered</h4> 976<pre>public int releaseBuffered(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out) 977 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> 978<div class="block">Method that can be called to push back any content that 979 has been read but not consumed by the parser. This is usually 980 done after reading all content of interest using parser. 981 Content is released by writing it to given stream if possible; 982 if underlying input is byte-based it can released, if not (char-based) 983 it can not.</div> 984<dl><dt><span class="strong">Returns:</span></dt><dd>-1 if the underlying content source is not byte based 985 (that is, input can not be sent to <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>; 986 otherwise number of bytes released (0 if there was nothing to release)</dd> 987<dt><span class="strong">Throws:</span></dt> 988<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> - if write to stream threw exception</dd><dt><span class="strong">Since:</span></dt> 989 <dd>1.6</dd></dl> 990</li> 991</ul> 992<a name="releaseBuffered(java.io.Writer)"> 993<!-- --> 994</a> 995<ul class="blockList"> 996<li class="blockList"> 997<h4>releaseBuffered</h4> 998<pre>public int releaseBuffered(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w) 999 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> 1000<div class="block">Method that can be called to push back any content that 1001 has been read but not consumed by the parser. 1002 This is usually 1003 done after reading all content of interest using parser. 1004 Content is released by writing it to given writer if possible; 1005 if underlying input is char-based it can released, if not (byte-based) 1006 it can not.</div> 1007<dl><dt><span class="strong">Returns:</span></dt><dd>-1 if the underlying content source is not char-based 1008 (that is, input can not be sent to <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>; 1009 otherwise number of chars released (0 if there was nothing to release)</dd> 1010<dt><span class="strong">Throws:</span></dt> 1011<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> - if write using Writer threw exception</dd><dt><span class="strong">Since:</span></dt> 1012 <dd>1.6</dd></dl> 1013</li> 1014</ul> 1015<a name="enable(org.codehaus.jackson.JsonParser.Feature)"> 1016<!-- --> 1017</a> 1018<ul class="blockList"> 1019<li class="blockList"> 1020<h4>enable</h4> 1021<pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> enable(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> 1022<div class="block">Method for enabling specified parser feature 1023 (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> 1024<dl><dt><span class="strong">Since:</span></dt> 1025 <dd>1.2</dd></dl> 1026</li> 1027</ul> 1028<a name="disable(org.codehaus.jackson.JsonParser.Feature)"> 1029<!-- --> 1030</a> 1031<ul class="blockList"> 1032<li class="blockList"> 1033<h4>disable</h4> 1034<pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> disable(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> 1035<div class="block">Method for disabling specified feature 1036 (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> 1037<dl><dt><span class="strong">Since:</span></dt> 1038 <dd>1.2</dd></dl> 1039</li> 1040</ul> 1041<a name="configure(org.codehaus.jackson.JsonParser.Feature, boolean)"> 1042<!-- --> 1043</a> 1044<ul class="blockList"> 1045<li class="blockList"> 1046<h4>configure</h4> 1047<pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> configure(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 1048 boolean state)</pre> 1049<div class="block">Method for enabling or disabling specified feature 1050 (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> 1051<dl><dt><span class="strong">Since:</span></dt> 1052 <dd>1.2</dd></dl> 1053</li> 1054</ul> 1055<a name="isEnabled(org.codehaus.jackson.JsonParser.Feature)"> 1056<!-- --> 1057</a> 1058<ul class="blockList"> 1059<li class="blockList"> 1060<h4>isEnabled</h4> 1061<pre>public boolean isEnabled(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> 1062<div class="block">Method for checking whether specified <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> 1063 is enabled.</div> 1064<dl><dt><span class="strong">Since:</span></dt> 1065 <dd>1.2</dd></dl> 1066</li> 1067</ul> 1068<a name="setFeature(org.codehaus.jackson.JsonParser.Feature, boolean)"> 1069<!-- --> 1070</a> 1071<ul class="blockList"> 1072<li class="blockList"> 1073<h4>setFeature</h4> 1074<pre>public void setFeature(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, 1075 boolean state)</pre> 1076<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)"><code>configure(org.codehaus.jackson.JsonParser.Feature, boolean)</code></a> instead</i></div> 1077</li> 1078</ul> 1079<a name="enableFeature(org.codehaus.jackson.JsonParser.Feature)"> 1080<!-- --> 1081</a> 1082<ul class="blockList"> 1083<li class="blockList"> 1084<h4>enableFeature</h4> 1085<pre>public void enableFeature(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> 1086<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#enable(org.codehaus.jackson.JsonParser.Feature)"><code>enable(Feature)</code></a> instead</i></div> 1087</li> 1088</ul> 1089<a name="disableFeature(org.codehaus.jackson.JsonParser.Feature)"> 1090<!-- --> 1091</a> 1092<ul class="blockList"> 1093<li class="blockList"> 1094<h4>disableFeature</h4> 1095<pre>public void disableFeature(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> 1096<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#disable(org.codehaus.jackson.JsonParser.Feature)"><code>disable(Feature)</code></a> instead</i></div> 1097</li> 1098</ul> 1099<a name="isFeatureEnabled(org.codehaus.jackson.JsonParser.Feature)"> 1100<!-- --> 1101</a> 1102<ul class="blockList"> 1103<li class="blockList"> 1104<h4>isFeatureEnabled</h4> 1105<pre>public final boolean isFeatureEnabled(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> 1106<div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonParser.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)"><code>isEnabled(Feature)</code></a> instead</i></div> 1107</li> 1108</ul> 1109<a name="nextToken()"> 1110<!-- --> 1111</a> 1112<ul class="blockList"> 1113<li class="blockList"> 1114<h4>nextToken</h4> 1115<pre>public abstract <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> nextToken() 1116 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>, 1117 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1118<div class="block">Main iteration method, which will advance stream enough 1119 to determine type of the next token, if any. If none 1120 remaining (stream has no content other than possible 1121 white space before ending), null will be returned.</div> 1122<dl><dt><span class="strong">Returns:</span></dt><dd>Next token from the stream, if any found, or null 1123 to indicate end-of-input</dd> 1124<dt><span class="strong">Throws:</span></dt> 1125<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> 1126<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1127</li> 1128</ul> 1129<a name="nextValue()"> 1130<!-- --> 1131</a> 1132<ul class="blockList"> 1133<li class="blockList"> 1134<h4>nextValue</h4> 1135<pre>public <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> nextValue() 1136 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>, 1137 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1138<div class="block">Iteration method that will advance stream enough 1139 to determine type of the next token that is a value type 1140 (including JSON Array and Object start/end markers). 1141 Or put another way, nextToken() will be called once, 1142 and if <a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a> is returned, another 1143 time to get the value for the field. 1144 Method is most useful for iterating over value entries 1145 of JSON objects; field name will still be available 1146 by calling <a href="../../../org/codehaus/jackson/JsonParser.html#getCurrentName()"><code>getCurrentName()</code></a> when parser points to 1147 the value.</div> 1148<dl><dt><span class="strong">Returns:</span></dt><dd>Next non-field-name token from the stream, if any found, 1149 or null to indicate end-of-input (or, for non-blocking 1150 parsers, <a href="../../../org/codehaus/jackson/JsonToken.html#NOT_AVAILABLE"><code>JsonToken.NOT_AVAILABLE</code></a> if no tokens were 1151 available yet)</dd> 1152<dt><span class="strong">Throws:</span></dt> 1153<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> 1154<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1155</li> 1156</ul> 1157<a name="nextFieldName(org.codehaus.jackson.SerializableString)"> 1158<!-- --> 1159</a> 1160<ul class="blockList"> 1161<li class="blockList"> 1162<h4>nextFieldName</h4> 1163<pre>public boolean nextFieldName(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> str) 1164 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>, 1165 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1166<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 1167 verifies whether it is <a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a> with specified name 1168 and returns result of that comparison. 1169 It is functionally equivalent to: 1170<pre> 1171 return (nextToken() == JsonToken.FIELD_NAME) && str.getValue().equals(getCurrentName()); 1172</pre> 1173 but may be faster for parser to verify, and can therefore be used if caller 1174 expects to get such a property name from input next.</div> 1175<dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - Property name to compare next token to (if next token is <code>JsonToken.FIELD_NAME<code>)</dd> 1176<dt><span class="strong">Throws:</span></dt> 1177<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> 1178<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1179 <dd>1.9</dd></dl> 1180</li> 1181</ul> 1182<a name="nextTextValue()"> 1183<!-- --> 1184</a> 1185<ul class="blockList"> 1186<li class="blockList"> 1187<h4>nextTextValue</h4> 1188<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nextTextValue() 1189 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>, 1190 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1191<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 1192 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_STRING"><code>JsonToken.VALUE_STRING</code></a> returns contained String value; 1193 otherwise returns null. 1194 It is functionally equivalent to: 1195<pre> 1196 return (nextToken() == JsonToken.VALUE_STRING) ? getText() : null; 1197</pre> 1198 but may be faster for parser to process, and can therefore be used if caller 1199 expects to get a String value next from input.</div> 1200<dl><dt><span class="strong">Throws:</span></dt> 1201<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> 1202<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1203 <dd>1.9</dd></dl> 1204</li> 1205</ul> 1206<a name="nextIntValue(int)"> 1207<!-- --> 1208</a> 1209<ul class="blockList"> 1210<li class="blockList"> 1211<h4>nextIntValue</h4> 1212<pre>public int nextIntValue(int defaultValue) 1213 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>, 1214 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1215<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 1216 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> returns 32-bit int value; 1217 otherwise returns specified default value 1218 It is functionally equivalent to: 1219<pre> 1220 return (nextToken() == JsonToken.VALUE_NUMBER_INT) ? getIntValue() : defaultValue; 1221</pre> 1222 but may be faster for parser to process, and can therefore be used if caller 1223 expects to get a String value next from input.</div> 1224<dl><dt><span class="strong">Throws:</span></dt> 1225<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> 1226<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1227 <dd>1.9</dd></dl> 1228</li> 1229</ul> 1230<a name="nextLongValue(long)"> 1231<!-- --> 1232</a> 1233<ul class="blockList"> 1234<li class="blockList"> 1235<h4>nextLongValue</h4> 1236<pre>public long nextLongValue(long defaultValue) 1237 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>, 1238 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1239<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 1240 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> returns 64-bit long value; 1241 otherwise returns specified default value 1242 It is functionally equivalent to: 1243<pre> 1244 return (nextToken() == JsonToken.VALUE_NUMBER_INT) ? getLongValue() : defaultValue; 1245</pre> 1246 but may be faster for parser to process, and can therefore be used if caller 1247 expects to get a String value next from input.</div> 1248<dl><dt><span class="strong">Throws:</span></dt> 1249<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> 1250<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1251 <dd>1.9</dd></dl> 1252</li> 1253</ul> 1254<a name="nextBooleanValue()"> 1255<!-- --> 1256</a> 1257<ul class="blockList"> 1258<li class="blockList"> 1259<h4>nextBooleanValue</h4> 1260<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> nextBooleanValue() 1261 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>, 1262 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1263<div class="block">Method that fetches next token (as if calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>) and 1264 if it is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_TRUE"><code>JsonToken.VALUE_TRUE</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_FALSE"><code>JsonToken.VALUE_FALSE</code></a> 1265 returns matching Boolean value; otherwise return null. 1266 It is functionally equivalent to: 1267<pre> 1268 JsonToken t = nextToken(); 1269 if (t == JsonToken.VALUE_TRUE) return Boolean.TRUE; 1270 if (t == JsonToken.VALUE_FALSE) return Boolean.FALSE; 1271 return null; 1272</pre> 1273 but may be faster for parser to process, and can therefore be used if caller 1274 expects to get a String value next from input.</div> 1275<dl><dt><span class="strong">Throws:</span></dt> 1276<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> 1277<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1278 <dd>1.9</dd></dl> 1279</li> 1280</ul> 1281<a name="skipChildren()"> 1282<!-- --> 1283</a> 1284<ul class="blockList"> 1285<li class="blockList"> 1286<h4>skipChildren</h4> 1287<pre>public abstract <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> skipChildren() 1288 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>, 1289 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1290<div class="block">Method that will skip all child tokens of an array or 1291 object token that the parser currently points to, 1292 iff stream points to 1293 <a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a>. 1294 If not, it will do nothing. 1295 After skipping, stream will point to <b>matching</b> 1296 <a href="../../../org/codehaus/jackson/JsonToken.html#END_OBJECT"><code>JsonToken.END_OBJECT</code></a> or <a href="../../../org/codehaus/jackson/JsonToken.html#END_ARRAY"><code>JsonToken.END_ARRAY</code></a> 1297 (possibly skipping nested pairs of START/END OBJECT/ARRAY tokens 1298 as well as value tokens). 1299 The idea is that after calling this method, application 1300 will call <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a> to point to the next 1301 available token, if any.</div> 1302<dl><dt><span class="strong">Throws:</span></dt> 1303<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> 1304<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1305</li> 1306</ul> 1307<a name="isClosed()"> 1308<!-- --> 1309</a> 1310<ul class="blockList"> 1311<li class="blockList"> 1312<h4>isClosed</h4> 1313<pre>public abstract boolean isClosed()</pre> 1314<div class="block">Method that can be called to determine whether this parser 1315 is closed or not. If it is closed, no new tokens can be 1316 retrieved by calling <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a> (and the underlying 1317 stream may be closed). Closing may be due to an explicit 1318 call to <a href="../../../org/codehaus/jackson/JsonParser.html#close()"><code>close()</code></a> or because parser has encountered 1319 end of input.</div> 1320</li> 1321</ul> 1322<a name="getCurrentToken()"> 1323<!-- --> 1324</a> 1325<ul class="blockList"> 1326<li class="blockList"> 1327<h4>getCurrentToken</h4> 1328<pre>public <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> getCurrentToken()</pre> 1329<div class="block">Accessor to find which token parser currently points to, if any; 1330 null will be returned if none. 1331 If return value is non-null, data associated with the token 1332 is available via other accessor methods.</div> 1333<dl><dt><span class="strong">Returns:</span></dt><dd>Type of the token this parser currently points to, 1334 if any: null before any tokens have been read, and 1335 after end-of-input has been encountered, as well as 1336 if the current token has been explicitly cleared.</dd></dl> 1337</li> 1338</ul> 1339<a name="hasCurrentToken()"> 1340<!-- --> 1341</a> 1342<ul class="blockList"> 1343<li class="blockList"> 1344<h4>hasCurrentToken</h4> 1345<pre>public boolean hasCurrentToken()</pre> 1346<div class="block">Method for checking whether parser currently points to 1347 a token (and data for that token is available). 1348 Equivalent to check for <code>parser.getCurrentToken() != null</code>.</div> 1349<dl><dt><span class="strong">Returns:</span></dt><dd>True if the parser just returned a valid 1350 token via <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>; false otherwise (parser 1351 was just constructed, encountered end-of-input 1352 and returned null from <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>, or the token 1353 has been consumed)</dd></dl> 1354</li> 1355</ul> 1356<a name="clearCurrentToken()"> 1357<!-- --> 1358</a> 1359<ul class="blockList"> 1360<li class="blockList"> 1361<h4>clearCurrentToken</h4> 1362<pre>public void clearCurrentToken()</pre> 1363<div class="block">Method called to "consume" the current token by effectively 1364 removing it so that <a href="../../../org/codehaus/jackson/JsonParser.html#hasCurrentToken()"><code>hasCurrentToken()</code></a> returns false, and 1365 <a href="../../../org/codehaus/jackson/JsonParser.html#getCurrentToken()"><code>getCurrentToken()</code></a> null). 1366 Cleared token value can still be accessed by calling 1367 <a href="../../../org/codehaus/jackson/JsonParser.html#getLastClearedToken()"><code>getLastClearedToken()</code></a> (if absolutely needed), but 1368 usually isn't. 1369<p> 1370 Method was added to be used by the optional data binder, since 1371 it has to be able to consume last token used for binding (so that 1372 it will not be used again).</div> 1373</li> 1374</ul> 1375<a name="getCurrentName()"> 1376<!-- --> 1377</a> 1378<ul class="blockList"> 1379<li class="blockList"> 1380<h4>getCurrentName</h4> 1381<pre>public abstract <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> getCurrentName() 1382 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1383 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1384<div class="block">Method that can be called to get the name associated with 1385 the current token: for <a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a>s it will 1386 be the same as what <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>getText()</code></a> returns; 1387 for field values it will be preceding field name; 1388 and for others (array values, root-level values) null.</div> 1389<dl><dt><span class="strong">Throws:</span></dt> 1390<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> 1391<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1392</li> 1393</ul> 1394<a name="getParsingContext()"> 1395<!-- --> 1396</a> 1397<ul class="blockList"> 1398<li class="blockList"> 1399<h4>getParsingContext</h4> 1400<pre>public abstract <a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a> getParsingContext()</pre> 1401<div class="block">Method that can be used to access current parsing context reader 1402 is in. There are 3 different types: root, array and object contexts, 1403 with slightly different available information. Contexts are 1404 hierarchically nested, and can be used for example for figuring 1405 out part of the input document that correspond to specific 1406 array or object (for highlighting purposes, or error reporting). 1407 Contexts can also be used for simple xpath-like matching of 1408 input, if so desired.</div> 1409</li> 1410</ul> 1411<a name="getTokenLocation()"> 1412<!-- --> 1413</a> 1414<ul class="blockList"> 1415<li class="blockList"> 1416<h4>getTokenLocation</h4> 1417<pre>public abstract <a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> getTokenLocation()</pre> 1418<div class="block">Method that return the <b>starting</b> location of the current 1419 token; that is, position of the first character from input 1420 that starts the current token.</div> 1421</li> 1422</ul> 1423<a name="getCurrentLocation()"> 1424<!-- --> 1425</a> 1426<ul class="blockList"> 1427<li class="blockList"> 1428<h4>getCurrentLocation</h4> 1429<pre>public abstract <a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> getCurrentLocation()</pre> 1430<div class="block">Method that returns location of the last processed character; 1431 usually for error reporting purposes.</div> 1432</li> 1433</ul> 1434<a name="getLastClearedToken()"> 1435<!-- --> 1436</a> 1437<ul class="blockList"> 1438<li class="blockList"> 1439<h4>getLastClearedToken</h4> 1440<pre>public <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> getLastClearedToken()</pre> 1441<div class="block">Method that can be called to get the last token that was 1442 cleared using <a href="../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()"><code>clearCurrentToken()</code></a>. This is not necessarily 1443 the latest token read. 1444 Will return null if no tokens have been cleared, 1445 or if parser has been closed.</div> 1446</li> 1447</ul> 1448<a name="isExpectedStartArrayToken()"> 1449<!-- --> 1450</a> 1451<ul class="blockList"> 1452<li class="blockList"> 1453<h4>isExpectedStartArrayToken</h4> 1454<pre>public boolean isExpectedStartArrayToken()</pre> 1455<div class="block">Specialized accessor that can be used to verify that the current 1456 token indicates start array (usually meaning that current token 1457 is <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a>) when start array is expected. 1458 For some specialized parsers this can return true for other cases 1459 as well; this is usually done to emulate arrays. 1460<p> 1461 Default implementation is equivalent to: 1462<pre> 1463 getCurrentToken() == JsonToken.START_ARRAY 1464</pre> 1465 but may be overridden by custom parser implementations.</div> 1466<dl><dt><span class="strong">Returns:</span></dt><dd>True if the current token can be considered as a 1467 start-array marker (such <a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a>); 1468 false if not.</dd><dt><span class="strong">Since:</span></dt> 1469 <dd>1.7</dd></dl> 1470</li> 1471</ul> 1472<a name="getText()"> 1473<!-- --> 1474</a> 1475<ul class="blockList"> 1476<li class="blockList"> 1477<h4>getText</h4> 1478<pre>public abstract <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> getText() 1479 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>, 1480 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1481<div class="block">Method for accessing textual representation of the current token; 1482 if no current token (before first call to <a href="../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>nextToken()</code></a>, or 1483 after encountering end-of-input), returns null. 1484 Method can be called for any token type.</div> 1485<dl><dt><span class="strong">Throws:</span></dt> 1486<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> 1487<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1488</li> 1489</ul> 1490<a name="getTextCharacters()"> 1491<!-- --> 1492</a> 1493<ul class="blockList"> 1494<li class="blockList"> 1495<h4>getTextCharacters</h4> 1496<pre>public abstract char[] getTextCharacters() 1497 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>, 1498 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1499<div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>getText()</code></a>, but that will return 1500 underlying (unmodifiable) character array that contains 1501 textual value, instead of constructing a String object 1502 to contain this information. 1503 Note, however, that: 1504<ul> 1505 <li>Textual contents are not guaranteed to start at 1506 index 0 (rather, call <a href="../../../org/codehaus/jackson/JsonParser.html#getTextOffset()"><code>getTextOffset()</code></a>) to 1507 know the actual offset 1508 </li> 1509 <li>Length of textual contents may be less than the 1510 length of returned buffer: call <a href="../../../org/codehaus/jackson/JsonParser.html#getTextLength()"><code>getTextLength()</code></a> 1511 for actual length of returned content. 1512 </li> 1513 </ul> 1514<p> 1515 Note that caller <b>MUST NOT</b> modify the returned 1516 character array in any way -- doing so may corrupt 1517 current parser state and render parser instance useless. 1518<p> 1519 The only reason to call this method (over <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>getText()</code></a>) 1520 is to avoid construction of a String object (which 1521 will make a copy of contents).</div> 1522<dl><dt><span class="strong">Throws:</span></dt> 1523<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> 1524<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1525</li> 1526</ul> 1527<a name="getTextLength()"> 1528<!-- --> 1529</a> 1530<ul class="blockList"> 1531<li class="blockList"> 1532<h4>getTextLength</h4> 1533<pre>public abstract int getTextLength() 1534 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>, 1535 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1536<div class="block">Accessor used with <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a>, to know length 1537 of String stored in returned buffer.</div> 1538<dl><dt><span class="strong">Returns:</span></dt><dd>Number of characters within buffer returned 1539 by <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a> that are part of 1540 textual content of the current token.</dd> 1541<dt><span class="strong">Throws:</span></dt> 1542<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1543<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1544</li> 1545</ul> 1546<a name="getTextOffset()"> 1547<!-- --> 1548</a> 1549<ul class="blockList"> 1550<li class="blockList"> 1551<h4>getTextOffset</h4> 1552<pre>public abstract int getTextOffset() 1553 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 1554 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1555<div class="block">Accessor used with <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a>, to know offset 1556 of the first text content character within buffer.</div> 1557<dl><dt><span class="strong">Returns:</span></dt><dd>Offset of the first character within buffer returned 1558 by <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a> that is part of 1559 textual content of the current token.</dd> 1560<dt><span class="strong">Throws:</span></dt> 1561<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> 1562<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1563</li> 1564</ul> 1565<a name="hasTextCharacters()"> 1566<!-- --> 1567</a> 1568<ul class="blockList"> 1569<li class="blockList"> 1570<h4>hasTextCharacters</h4> 1571<pre>public boolean hasTextCharacters()</pre> 1572<div class="block">Method that can be used to determine whether calling of 1573 <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a> would be the most efficient 1574 way to access textual content for the event parser currently 1575 points to. 1576<p> 1577 Default implementation simply returns false since only actual 1578 implementation class has knowledge of its internal buffering 1579 state. 1580 Implementations are strongly encouraged to properly override 1581 this method, to allow efficient copying of content by other 1582 code.</div> 1583<dl><dt><span class="strong">Returns:</span></dt><dd>True if parser currently has character array that can 1584 be efficiently returned via <a href="../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>getTextCharacters()</code></a>; false 1585 means that it may or may not exist</dd><dt><span class="strong">Since:</span></dt> 1586 <dd>1.6</dd></dl> 1587</li> 1588</ul> 1589<a name="getNumberValue()"> 1590<!-- --> 1591</a> 1592<ul class="blockList"> 1593<li class="blockList"> 1594<h4>getNumberValue</h4> 1595<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> getNumberValue() 1596 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>, 1597 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1598<div class="block">Generic number value accessor method that will work for 1599 all kinds of numeric values. It will return the optimal 1600 (simplest/smallest possible) wrapper object that can 1601 express the numeric value just parsed.</div> 1602<dl><dt><span class="strong">Throws:</span></dt> 1603<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> 1604<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1605</li> 1606</ul> 1607<a name="getNumberType()"> 1608<!-- --> 1609</a> 1610<ul class="blockList"> 1611<li class="blockList"> 1612<h4>getNumberType</h4> 1613<pre>public abstract <a href="../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a> getNumberType() 1614 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>, 1615 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1616<div class="block">If current token is of type 1617 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> or 1618 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>, returns 1619 one of <a href="../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson"><code>JsonParser.NumberType</code></a> constants; otherwise returns null.</div> 1620<dl><dt><span class="strong">Throws:</span></dt> 1621<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> 1622<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1623</li> 1624</ul> 1625<a name="getByteValue()"> 1626<!-- --> 1627</a> 1628<ul class="blockList"> 1629<li class="blockList"> 1630<h4>getByteValue</h4> 1631<pre>public byte getByteValue() 1632 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>, 1633 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1634<div class="block">Numeric accessor that can be called when the current 1635 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1636 it can be expressed as a value of Java byte primitive type. 1637 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1638 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()"><code>getDoubleValue()</code></a> 1639 and then casting; except for possible overflow/underflow 1640 exception. 1641<p> 1642 Note: if the resulting integer value falls outside range of 1643 Java byte, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1644 will be thrown to indicate numeric overflow/underflow.</div> 1645<dl><dt><span class="strong">Throws:</span></dt> 1646<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> 1647<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1648</li> 1649</ul> 1650<a name="getShortValue()"> 1651<!-- --> 1652</a> 1653<ul class="blockList"> 1654<li class="blockList"> 1655<h4>getShortValue</h4> 1656<pre>public short getShortValue() 1657 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>, 1658 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1659<div class="block">Numeric accessor that can be called when the current 1660 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1661 it can be expressed as a value of Java short primitive type. 1662 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1663 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()"><code>getDoubleValue()</code></a> 1664 and then casting; except for possible overflow/underflow 1665 exception. 1666<p> 1667 Note: if the resulting integer value falls outside range of 1668 Java short, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1669 will be thrown to indicate numeric overflow/underflow.</div> 1670<dl><dt><span class="strong">Throws:</span></dt> 1671<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> 1672<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1673</li> 1674</ul> 1675<a name="getIntValue()"> 1676<!-- --> 1677</a> 1678<ul class="blockList"> 1679<li class="blockList"> 1680<h4>getIntValue</h4> 1681<pre>public abstract int getIntValue() 1682 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>, 1683 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1684<div class="block">Numeric accessor that can be called when the current 1685 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1686 it can be expressed as a value of Java int primitive type. 1687 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1688 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()"><code>getDoubleValue()</code></a> 1689 and then casting; except for possible overflow/underflow 1690 exception. 1691<p> 1692 Note: if the resulting integer value falls outside range of 1693 Java int, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1694 may be thrown to indicate numeric overflow/underflow.</div> 1695<dl><dt><span class="strong">Throws:</span></dt> 1696<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> 1697<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1698</li> 1699</ul> 1700<a name="getLongValue()"> 1701<!-- --> 1702</a> 1703<ul class="blockList"> 1704<li class="blockList"> 1705<h4>getLongValue</h4> 1706<pre>public abstract long getLongValue() 1707 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>, 1708 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1709<div class="block">Numeric accessor that can be called when the current 1710 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1711 it can be expressed as a Java long primitive type. 1712 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1713 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()"><code>getDoubleValue()</code></a> 1714 and then casting to int; except for possible overflow/underflow 1715 exception. 1716<p> 1717 Note: if the token is an integer, but its value falls 1718 outside of range of Java long, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1719 may be thrown to indicate numeric overflow/underflow.</div> 1720<dl><dt><span class="strong">Throws:</span></dt> 1721<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> 1722<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1723</li> 1724</ul> 1725<a name="getBigIntegerValue()"> 1726<!-- --> 1727</a> 1728<ul class="blockList"> 1729<li class="blockList"> 1730<h4>getBigIntegerValue</h4> 1731<pre>public abstract <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> getBigIntegerValue() 1732 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>, 1733 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1734<div class="block">Numeric accessor that can be called when the current 1735 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1736 it can not be used as a Java long primitive type due to its 1737 magnitude. 1738 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1739 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getDecimalValue()"><code>getDecimalValue()</code></a> 1740 and then constructing a <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> from that value.</div> 1741<dl><dt><span class="strong">Throws:</span></dt> 1742<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> 1743<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1744</li> 1745</ul> 1746<a name="getFloatValue()"> 1747<!-- --> 1748</a> 1749<ul class="blockList"> 1750<li class="blockList"> 1751<h4>getFloatValue</h4> 1752<pre>public abstract float getFloatValue() 1753 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>, 1754 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1755<div class="block">Numeric accessor that can be called when the current 1756 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 1757 it can be expressed as a Java float primitive type. 1758 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>; 1759 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getLongValue()"><code>getLongValue()</code></a> 1760 and then casting; except for possible overflow/underflow 1761 exception. 1762<p> 1763 Note: if the value falls 1764 outside of range of Java float, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1765 will be thrown to indicate numeric overflow/underflow.</div> 1766<dl><dt><span class="strong">Throws:</span></dt> 1767<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> 1768<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1769</li> 1770</ul> 1771<a name="getDoubleValue()"> 1772<!-- --> 1773</a> 1774<ul class="blockList"> 1775<li class="blockList"> 1776<h4>getDoubleValue</h4> 1777<pre>public abstract double getDoubleValue() 1778 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>, 1779 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1780<div class="block">Numeric accessor that can be called when the current 1781 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 1782 it can be expressed as a Java double primitive type. 1783 It can also be called for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>; 1784 if so, it is equivalent to calling <a href="../../../org/codehaus/jackson/JsonParser.html#getLongValue()"><code>getLongValue()</code></a> 1785 and then casting; except for possible overflow/underflow 1786 exception. 1787<p> 1788 Note: if the value falls 1789 outside of range of Java double, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1790 will be thrown to indicate numeric overflow/underflow.</div> 1791<dl><dt><span class="strong">Throws:</span></dt> 1792<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> 1793<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1794</li> 1795</ul> 1796<a name="getDecimalValue()"> 1797<!-- --> 1798</a> 1799<ul class="blockList"> 1800<li class="blockList"> 1801<h4>getDecimalValue</h4> 1802<pre>public abstract <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> getDecimalValue() 1803 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>, 1804 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1805<div class="block">Numeric accessor that can be called when the current 1806 token is of type <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> or 1807 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>. No under/overflow exceptions 1808 are ever thrown.</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/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1812</li> 1813</ul> 1814<a name="getBooleanValue()"> 1815<!-- --> 1816</a> 1817<ul class="blockList"> 1818<li class="blockList"> 1819<h4>getBooleanValue</h4> 1820<pre>public boolean getBooleanValue() 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/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1823<div class="block">Convenience accessor that can be called when the current 1824 token is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_TRUE"><code>JsonToken.VALUE_TRUE</code></a> or 1825 <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_FALSE"><code>JsonToken.VALUE_FALSE</code></a>. 1826<p> 1827 Note: if the token is not of above-mentioned boolean types, 1828 an integer, but its value falls 1829 outside of range of Java long, a <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1830 may be thrown to indicate numeric overflow/underflow.</div> 1831<dl><dt><span class="strong">Throws:</span></dt> 1832<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> 1833<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1834 <dd>1.3</dd></dl> 1835</li> 1836</ul> 1837<a name="getEmbeddedObject()"> 1838<!-- --> 1839</a> 1840<ul class="blockList"> 1841<li class="blockList"> 1842<h4>getEmbeddedObject</h4> 1843<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> getEmbeddedObject() 1844 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>, 1845 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1846<div class="block">Accessor that can be called if (and only if) the current token 1847 is <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT"><code>JsonToken.VALUE_EMBEDDED_OBJECT</code></a>. For other token types, 1848 null is returned. 1849<p> 1850 Note: only some specialized parser implementations support 1851 embedding of objects (usually ones that are facades on top 1852 of non-streaming sources, such as object trees).</div> 1853<dl><dt><span class="strong">Throws:</span></dt> 1854<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> 1855<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1856 <dd>1.3</dd></dl> 1857</li> 1858</ul> 1859<a name="getBinaryValue(org.codehaus.jackson.Base64Variant)"> 1860<!-- --> 1861</a> 1862<ul class="blockList"> 1863<li class="blockList"> 1864<h4>getBinaryValue</h4> 1865<pre>public abstract byte[] getBinaryValue(<a href="../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant) 1866 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>, 1867 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1868<div class="block">Method that can be used to read (and consume -- results 1869 may not be accessible using other methods after the call) 1870 base64-encoded binary data 1871 included in the current textual JSON value. 1872 It works similar to getting String value via <a href="../../../org/codehaus/jackson/JsonParser.html#getText()"><code>getText()</code></a> 1873 and decoding result (except for decoding part), 1874 but should be significantly more performant. 1875<p> 1876 Note that non-decoded textual contents of the current token 1877 are not guaranteed to be accessible after this method 1878 is called. Current implementation, for example, clears up 1879 textual content during decoding. 1880 Decoded binary content, however, will be retained until 1881 parser is advanced to the next event.</div> 1882<dl><dt><span class="strong">Parameters:</span></dt><dd><code>b64variant</code> - Expected variant of base64 encoded 1883 content (see <a href="../../../org/codehaus/jackson/Base64Variants.html" title="class in org.codehaus.jackson"><code>Base64Variants</code></a> for definitions 1884 of "standard" variants).</dd> 1885<dt><span class="strong">Returns:</span></dt><dd>Decoded binary data</dd> 1886<dt><span class="strong">Throws:</span></dt> 1887<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> 1888<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1889</li> 1890</ul> 1891<a name="getBinaryValue()"> 1892<!-- --> 1893</a> 1894<ul class="blockList"> 1895<li class="blockList"> 1896<h4>getBinaryValue</h4> 1897<pre>public byte[] getBinaryValue() 1898 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>, 1899 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1900<div class="block">Convenience alternative to <a href="../../../org/codehaus/jackson/JsonParser.html#getBinaryValue(org.codehaus.jackson.Base64Variant)"><code>getBinaryValue(Base64Variant)</code></a> 1901 that defaults to using 1902 <a href="../../../org/codehaus/jackson/Base64Variants.html#getDefaultVariant()"><code>Base64Variants.getDefaultVariant()</code></a> as the default encoding.</div> 1903<dl><dt><span class="strong">Throws:</span></dt> 1904<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> 1905<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1906</li> 1907</ul> 1908<a name="getValueAsInt()"> 1909<!-- --> 1910</a> 1911<ul class="blockList"> 1912<li class="blockList"> 1913<h4>getValueAsInt</h4> 1914<pre>public int getValueAsInt() 1915 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>, 1916 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1917<div class="block">Method that will try to convert value of current token to a 1918 <b>int</b>. 1919 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1920 and 1 (true), and Strings are parsed using default Java language integer 1921 parsing rules. 1922<p> 1923 If representation can not be converted to an int (including structured type 1924 markers like start/end Object/Array) 1925 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 1926<dl><dt><span class="strong">Throws:</span></dt> 1927<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> 1928<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1929 <dd>1.6</dd></dl> 1930</li> 1931</ul> 1932<a name="getValueAsInt(int)"> 1933<!-- --> 1934</a> 1935<ul class="blockList"> 1936<li class="blockList"> 1937<h4>getValueAsInt</h4> 1938<pre>public int getValueAsInt(int defaultValue) 1939 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>, 1940 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1941<div class="block">Method that will try to convert value of current token to a 1942 <b>int</b>. 1943 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1944 and 1 (true), and Strings are parsed using default Java language integer 1945 parsing rules. 1946<p> 1947 If representation can not be converted to an int (including structured type 1948 markers like start/end Object/Array) 1949 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1950<dl><dt><span class="strong">Throws:</span></dt> 1951<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> 1952<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1953 <dd>1.6</dd></dl> 1954</li> 1955</ul> 1956<a name="getValueAsLong()"> 1957<!-- --> 1958</a> 1959<ul class="blockList"> 1960<li class="blockList"> 1961<h4>getValueAsLong</h4> 1962<pre>public long getValueAsLong() 1963 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>, 1964 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1965<div class="block">Method that will try to convert value of current token to a 1966 <b>long</b>. 1967 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1968 and 1 (true), and Strings are parsed using default Java language integer 1969 parsing rules. 1970<p> 1971 If representation can not be converted to an int (including structured type 1972 markers like start/end Object/Array) 1973 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 1974<dl><dt><span class="strong">Throws:</span></dt> 1975<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> 1976<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 1977 <dd>1.6</dd></dl> 1978</li> 1979</ul> 1980<a name="getValueAsLong(long)"> 1981<!-- --> 1982</a> 1983<ul class="blockList"> 1984<li class="blockList"> 1985<h4>getValueAsLong</h4> 1986<pre>public long getValueAsLong(long defaultValue) 1987 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>, 1988 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1989<div class="block">Method that will try to convert value of current token to a 1990 <b>long</b>. 1991 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1992 and 1 (true), and Strings are parsed using default Java language integer 1993 parsing rules. 1994<p> 1995 If representation can not be converted to an int (including structured type 1996 markers like start/end Object/Array) 1997 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1998<dl><dt><span class="strong">Throws:</span></dt> 1999<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> 2000<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 2001 <dd>1.6</dd></dl> 2002</li> 2003</ul> 2004<a name="getValueAsDouble()"> 2005<!-- --> 2006</a> 2007<ul class="blockList"> 2008<li class="blockList"> 2009<h4>getValueAsDouble</h4> 2010<pre>public double getValueAsDouble() 2011 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>, 2012 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 2013<div class="block">Method that will try to convert value of current token to a Java 2014 <b>double</b>. 2015 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 2016 and 1.0 (true), and Strings are parsed using default Java language integer 2017 parsing rules. 2018<p> 2019 If representation can not be converted to an int (including structured types 2020 like Objects and Arrays), 2021 default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> 2022<dl><dt><span class="strong">Throws:</span></dt> 2023<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> 2024<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 2025 <dd>1.6</dd></dl> 2026</li> 2027</ul> 2028<a name="getValueAsDouble(double)"> 2029<!-- --> 2030</a> 2031<ul class="blockList"> 2032<li class="blockList"> 2033<h4>getValueAsDouble</h4> 2034<pre>public double getValueAsDouble(double defaultValue) 2035 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>, 2036 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 2037<div class="block">Method that will try to convert value of current token to a 2038 Java <b>double</b>. 2039 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 2040 and 1.0 (true), and Strings are parsed using default Java language integer 2041 parsing rules. 2042<p> 2043 If representation can not be converted to an int (including structured types 2044 like Objects and Arrays), 2045 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</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/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 2049 <dd>1.6</dd></dl> 2050</li> 2051</ul> 2052<a name="getValueAsBoolean()"> 2053<!-- --> 2054</a> 2055<ul class="blockList"> 2056<li class="blockList"> 2057<h4>getValueAsBoolean</h4> 2058<pre>public boolean getValueAsBoolean() 2059 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>, 2060 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 2061<div class="block">Method that will try to convert value of current token to a 2062 <b>boolean</b>. 2063 JSON booleans map naturally; integer numbers other than 0 map to true, and 2064 0 maps to false 2065 and Strings 'true' and 'false' map to corresponding values. 2066<p> 2067 If representation can not be converted to a boolean value (including structured types 2068 like Objects and Arrays), 2069 default value of <b>false</b> will be returned; no exceptions are thrown.</div> 2070<dl><dt><span class="strong">Throws:</span></dt> 2071<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> 2072<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 2073 <dd>1.7</dd></dl> 2074</li> 2075</ul> 2076<a name="getValueAsBoolean(boolean)"> 2077<!-- --> 2078</a> 2079<ul class="blockList"> 2080<li class="blockList"> 2081<h4>getValueAsBoolean</h4> 2082<pre>public boolean getValueAsBoolean(boolean defaultValue) 2083 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>, 2084 <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 2085<div class="block">Method that will try to convert value of current token to a 2086 <b>boolean</b>. 2087 JSON booleans map naturally; integer numbers other than 0 map to true, and 2088 0 maps to false 2089 and Strings 'true' and 'false' map to corresponding values. 2090<p> 2091 If representation can not be converted to a boolean value (including structured types 2092 like Objects and Arrays), 2093 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 2094<dl><dt><span class="strong">Throws:</span></dt> 2095<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> 2096<dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd><dt><span class="strong">Since:</span></dt> 2097 <dd>1.7</dd></dl> 2098</li> 2099</ul> 2100<a name="readValueAs(java.lang.Class)"> 2101<!-- --> 2102</a> 2103<ul class="blockList"> 2104<li class="blockList"> 2105<h4>readValueAs</h4> 2106<pre>public <T> T readValueAs(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> valueType) 2107 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>, 2108 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2109<div class="block">Method to deserialize JSON content into a non-container 2110 type (it can be an array type, however): typically a bean, array 2111 or a wrapper type (like <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>). 2112 <b>Note</b>: method can only be called if the parser has 2113 an object codec assigned; this is true for parsers constructed 2114 by <a href="../../../org/codehaus/jackson/map/MappingJsonFactory.html" title="class in org.codehaus.jackson.map"><code>MappingJsonFactory</code></a> but 2115 not for <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> (unless its <code>setCodec</code> 2116 method has been explicitly called). 2117<p> 2118 This method may advance the event stream, for structured types 2119 the current token will be the closing end marker (END_ARRAY, 2120 END_OBJECT) of the bound structure. For non-structured Json types 2121 (and for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT"><code>JsonToken.VALUE_EMBEDDED_OBJECT</code></a>) 2122 stream is not advanced. 2123<p> 2124 Note: this method should NOT be used if the result type is a 2125 container (<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> or <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>. 2126 The reason is that due to type erasure, key and value types 2127 can not be introspected when using this method.</div> 2128<dl><dt><span class="strong">Throws:</span></dt> 2129<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> 2130<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 2131</li> 2132</ul> 2133<a name="readValueAs(org.codehaus.jackson.type.TypeReference)"> 2134<!-- --> 2135</a> 2136<ul class="blockList"> 2137<li class="blockList"> 2138<h4>readValueAs</h4> 2139<pre>public <T> T readValueAs(<a href="../../../org/codehaus/jackson/type/TypeReference.html" title="class in org.codehaus.jackson.type">TypeReference</a><?> valueTypeRef) 2140 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>, 2141 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2142<div class="block">Method to deserialize JSON content into a Java type, reference 2143 to which is passed as argument. Type is passed using so-called 2144 "super type token" 2145 and specifically needs to be used if the root type is a 2146 parameterized (generic) container type. 2147 <b>Note</b>: method can only be called if the parser has 2148 an object codec assigned; this is true for parsers constructed 2149 by <a href="../../../org/codehaus/jackson/map/MappingJsonFactory.html" title="class in org.codehaus.jackson.map"><code>MappingJsonFactory</code></a> but 2150 not for <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> (unless its <code>setCodec</code> 2151 method has been explicitly called). 2152<p> 2153 This method may advance the event stream, for structured types 2154 the current token will be the closing end marker (END_ARRAY, 2155 END_OBJECT) of the bound structure. For non-structured Json types 2156 (and for <a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT"><code>JsonToken.VALUE_EMBEDDED_OBJECT</code></a>) 2157 stream is not advanced.</div> 2158<dl><dt><span class="strong">Throws:</span></dt> 2159<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> 2160<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 2161</li> 2162</ul> 2163<a name="readValuesAs(java.lang.Class)"> 2164<!-- --> 2165</a> 2166<ul class="blockList"> 2167<li class="blockList"> 2168<h4>readValuesAs</h4> 2169<pre>public <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T> readValuesAs(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> valueType) 2170 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>, 2171 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2172<div class="block">Method for reading sequence of Objects from parser stream, 2173 all with same specified value type.</div> 2174<dl><dt><span class="strong">Throws:</span></dt> 2175<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> 2176<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd><dt><span class="strong">Since:</span></dt> 2177 <dd>1.9</dd></dl> 2178</li> 2179</ul> 2180<a name="readValuesAs(org.codehaus.jackson.type.TypeReference)"> 2181<!-- --> 2182</a> 2183<ul class="blockList"> 2184<li class="blockList"> 2185<h4>readValuesAs</h4> 2186<pre>public <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T> readValuesAs(<a href="../../../org/codehaus/jackson/type/TypeReference.html" title="class in org.codehaus.jackson.type">TypeReference</a><?> valueTypeRef) 2187 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>, 2188 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2189<div class="block">Method for reading sequence of Objects from parser stream, 2190 all with same specified value type.</div> 2191<dl><dt><span class="strong">Throws:</span></dt> 2192<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> 2193<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd><dt><span class="strong">Since:</span></dt> 2194 <dd>1.9</dd></dl> 2195</li> 2196</ul> 2197<a name="readValueAsTree()"> 2198<!-- --> 2199</a> 2200<ul class="blockList"> 2201<li class="blockList"> 2202<h4>readValueAsTree</h4> 2203<pre>public <a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> readValueAsTree() 2204 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>, 2205 <a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 2206<div class="block">Method to deserialize JSON content into equivalent "tree model", 2207 represented by root <a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson"><code>JsonNode</code></a> of resulting model. 2208 For JSON Arrays it will an array node (with child nodes), 2209 for objects object node (with child nodes), and for other types 2210 matching leaf node type</div> 2211<dl><dt><span class="strong">Throws:</span></dt> 2212<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> 2213<dd><code><a href="../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 2214</li> 2215</ul> 2216<a name="_constructError(java.lang.String)"> 2217<!-- --> 2218</a> 2219<ul class="blockListLast"> 2220<li class="blockList"> 2221<h4>_constructError</h4> 2222<pre>protected <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a> _constructError(<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> msg)</pre> 2223<div class="block">Helper method for constructing <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a>s 2224 based on current state of the parser</div> 2225</li> 2226</ul> 2227</li> 2228</ul> 2229</li> 2230</ul> 2231</div> 2232</div> 2233<!-- ========= END OF CLASS DATA ========= --> 2234<!-- ======= START OF BOTTOM NAVBAR ====== --> 2235<div class="bottomNav"><a name="navbar_bottom"> 2236<!-- --> 2237</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 2238<!-- --> 2239</a> 2240<ul class="navList" title="Navigation"> 2241<li><a href="../../../overview-summary.html">Overview</a></li> 2242<li><a href="package-summary.html">Package</a></li> 2243<li class="navBarCell1Rev">Class</li> 2244<li><a href="class-use/JsonParser.html">Use</a></li> 2245<li><a href="package-tree.html">Tree</a></li> 2246<li><a href="../../../deprecated-list.html">Deprecated</a></li> 2247<li><a href="../../../index-all.html">Index</a></li> 2248<li><a href="../../../help-doc.html">Help</a></li> 2249</ul> 2250</div> 2251<div class="subNav"> 2252<ul class="navList"> 2253<li><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 2254<li><a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 2255</ul> 2256<ul class="navList"> 2257<li><a href="../../../index.html?org/codehaus/jackson/JsonParser.html" target="_top">Frames</a></li> 2258<li><a href="JsonParser.html" target="_top">No Frames</a></li> 2259</ul> 2260<ul class="navList" id="allclasses_navbar_bottom"> 2261<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 2262</ul> 2263<div> 2264<script type="text/javascript"><!-- 2265 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 2266 if(window==top) { 2267 allClassesLink.style.display = "block"; 2268 } 2269 else { 2270 allClassesLink.style.display = "none"; 2271 } 2272 //--> 2273</script> 2274</div> 2275<div> 2276<ul class="subNavList"> 2277<li>Summary: </li> 2278<li><a href="#nested_class_summary">Nested</a> | </li> 2279<li><a href="#field_summary">Field</a> | </li> 2280<li><a href="#constructor_summary">Constr</a> | </li> 2281<li><a href="#method_summary">Method</a></li> 2282</ul> 2283<ul class="subNavList"> 2284<li>Detail: </li> 2285<li><a href="#field_detail">Field</a> | </li> 2286<li><a href="#constructor_detail">Constr</a> | </li> 2287<li><a href="#method_detail">Method</a></li> 2288</ul> 2289</div> 2290<a name="skip-navbar_bottom"> 2291<!-- --> 2292</a></div> 2293<!-- ======== END OF BOTTOM NAVBAR ======= --> 2294</body> 2295</html> 2296