1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:25 PDT 2013 --> 6<title>TokenBuffer.Parser (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="TokenBuffer.Parser (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/TokenBuffer.Parser.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../../index-all.html">Index</a></li> 34<li><a href="../../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.Parser.html" target="_top">Frames</a></li> 44<li><a href="TokenBuffer.Parser.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_classes_inherited_from_class_org.codehaus.jackson.JsonParser">Nested</a> | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson.util</div> 83<h2 title="Class TokenBuffer.Parser" class="title">Class TokenBuffer.Parser</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonParser</a></li> 91<li> 92<ul class="inheritance"> 93<li><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">org.codehaus.jackson.impl.JsonParserMinimalBase</a></li> 94<li> 95<ul class="inheritance"> 96<li>org.codehaus.jackson.util.TokenBuffer.Parser</li> 97</ul> 98</li> 99</ul> 100</li> 101</ul> 102</li> 103</ul> 104<div class="description"> 105<ul class="blockList"> 106<li class="blockList"> 107<dl> 108<dt>All Implemented Interfaces:</dt> 109<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> 110</dl> 111<dl> 112<dt>Enclosing class:</dt> 113<dd><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util">TokenBuffer</a></dd> 114</dl> 115<hr> 116<br> 117<pre>protected static final class <span class="strong">TokenBuffer.Parser</span> 118extends <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></pre> 119</li> 120</ul> 121</div> 122<div class="summary"> 123<ul class="blockList"> 124<li class="blockList"> 125<!-- ======== NESTED CLASS SUMMARY ======== --> 126<ul class="blockList"> 127<li class="blockList"><a name="nested_class_summary"> 128<!-- --> 129</a> 130<h3>Nested Class Summary</h3> 131<ul class="blockList"> 132<li class="blockList"><a name="nested_classes_inherited_from_class_org.codehaus.jackson.JsonParser"> 133<!-- --> 134</a> 135<h3>Nested classes/interfaces inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></h3> 136<code><a href="../../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a>, <a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a></code></li> 137</ul> 138</li> 139</ul> 140<!-- =========== FIELD SUMMARY =========== --> 141<ul class="blockList"> 142<li class="blockList"><a name="field_summary"> 143<!-- --> 144</a> 145<h3>Field Summary</h3> 146<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 147<caption><span>Fields</span><span class="tabEnd"> </span></caption> 148<tr> 149<th class="colFirst" scope="col">Modifier and Type</th> 150<th class="colLast" scope="col">Field and Description</th> 151</tr> 152<tr class="altColor"> 153<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html" title="class in org.codehaus.jackson.util">ByteArrayBuilder</a></code></td> 154<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_byteBuilder">_byteBuilder</a></strong></code> </td> 155</tr> 156<tr class="rowColor"> 157<td class="colFirst"><code>protected boolean</code></td> 158<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_closed">_closed</a></strong></code> </td> 159</tr> 160<tr class="altColor"> 161<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> 162<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_codec">_codec</a></strong></code> </td> 163</tr> 164<tr class="rowColor"> 165<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a></code></td> 166<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_location">_location</a></strong></code> </td> 167</tr> 168<tr class="altColor"> 169<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/impl/JsonReadContext.html" title="class in org.codehaus.jackson.impl">JsonReadContext</a></code></td> 170<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_parsingContext">_parsingContext</a></strong></code> 171<div class="block">Information about parser context, context in which 172 the next token is to be parsed (root, array, object).</div> 173</td> 174</tr> 175<tr class="rowColor"> 176<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td> 177<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_segment">_segment</a></strong></code> 178<div class="block">Currently active segment</div> 179</td> 180</tr> 181<tr class="altColor"> 182<td class="colFirst"><code>protected int</code></td> 183<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_segmentPtr">_segmentPtr</a></strong></code> 184<div class="block">Pointer to current token within current segment</div> 185</td> 186</tr> 187</table> 188<ul class="blockList"> 189<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.impl.JsonParserMinimalBase"> 190<!-- --> 191</a> 192<h3>Fields inherited from class org.codehaus.jackson.impl.<a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></h3> 193<code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_APOSTROPHE">INT_APOSTROPHE</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_ASTERISK">INT_ASTERISK</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_b">INT_b</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_BACKSLASH">INT_BACKSLASH</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_COLON">INT_COLON</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_COMMA">INT_COMMA</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_CR">INT_CR</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_f">INT_f</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_LBRACKET">INT_LBRACKET</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_LCURLY">INT_LCURLY</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_LF">INT_LF</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_n">INT_n</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_QUOTE">INT_QUOTE</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_r">INT_r</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_RBRACKET">INT_RBRACKET</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_RCURLY">INT_RCURLY</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_SLASH">INT_SLASH</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_SPACE">INT_SPACE</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_t">INT_t</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_TAB">INT_TAB</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#INT_u">INT_u</a></code></li> 194</ul> 195<ul class="blockList"> 196<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonParser"> 197<!-- --> 198</a> 199<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></h3> 200<code><a href="../../../../org/codehaus/jackson/JsonParser.html#_currToken">_currToken</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#_features">_features</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#_lastClearedToken">_lastClearedToken</a></code></li> 201</ul> 202</li> 203</ul> 204<!-- ======== CONSTRUCTOR SUMMARY ======== --> 205<ul class="blockList"> 206<li class="blockList"><a name="constructor_summary"> 207<!-- --> 208</a> 209<h3>Constructor Summary</h3> 210<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 211<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 212<tr> 213<th class="colOne" scope="col">Constructor and Description</th> 214</tr> 215<tr class="altColor"> 216<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#TokenBuffer.Parser(org.codehaus.jackson.util.TokenBuffer.Segment, org.codehaus.jackson.ObjectCodec)">TokenBuffer.Parser</a></strong>(<a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> firstSeg, 217 <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</code> </td> 218</tr> 219</table> 220</li> 221</ul> 222<!-- ========== METHOD SUMMARY =========== --> 223<ul class="blockList"> 224<li class="blockList"><a name="method_summary"> 225<!-- --> 226</a> 227<h3>Method Summary</h3> 228<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 229<caption><span>Methods</span><span class="tabEnd"> </span></caption> 230<tr> 231<th class="colFirst" scope="col">Modifier and Type</th> 232<th class="colLast" scope="col">Method and Description</th> 233</tr> 234<tr class="altColor"> 235<td class="colFirst"><code>protected void</code></td> 236<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_checkIsNumber()">_checkIsNumber</a></strong>()</code> </td> 237</tr> 238<tr class="rowColor"> 239<td class="colFirst"><code>protected <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> 240<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_currentObject()">_currentObject</a></strong>()</code> </td> 241</tr> 242<tr class="altColor"> 243<td class="colFirst"><code>protected void</code></td> 244<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#_handleEOF()">_handleEOF</a></strong>()</code> 245<div class="block">Method sub-classes need to implement</div> 246</td> 247</tr> 248<tr class="rowColor"> 249<td class="colFirst"><code>void</code></td> 250<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#close()">close</a></strong>()</code> 251<div class="block">Closes the parser so that no further iteration or data access 252 can be made; will also close the underlying input source 253 if parser either <b>owns</b> the input source, or feature 254 <a href="../../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled.</div> 255</td> 256</tr> 257<tr class="altColor"> 258<td class="colFirst"><code><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> 259<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getBigIntegerValue()">getBigIntegerValue</a></strong>()</code> 260<div class="block">Numeric accessor that can be called when the current 261 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 262 it can not be used as a Java long primitive type due to its 263 magnitude.</div> 264</td> 265</tr> 266<tr class="rowColor"> 267<td class="colFirst"><code>byte[]</code></td> 268<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.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> 269<div class="block">Method that can be used to read (and consume -- results 270 may not be accessible using other methods after the call) 271 base64-encoded binary data 272 included in the current textual JSON value.</div> 273</td> 274</tr> 275<tr class="altColor"> 276<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> 277<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getCodec()">getCodec</a></strong>()</code> 278<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 279 parser, if any.</div> 280</td> 281</tr> 282<tr class="rowColor"> 283<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a></code></td> 284<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getCurrentLocation()">getCurrentLocation</a></strong>()</code> 285<div class="block">Method that returns location of the last processed character; 286 usually for error reporting purposes.</div> 287</td> 288</tr> 289<tr class="altColor"> 290<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> 291<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getCurrentName()">getCurrentName</a></strong>()</code> 292<div class="block">Method that can be called to get the name associated with 293 the current token: for <a href="../../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a>s it will 294 be the same as what <a href="../../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a> returns; 295 for field values it will be preceding field name; 296 and for others (array values, root-level values) null.</div> 297</td> 298</tr> 299<tr class="rowColor"> 300<td class="colFirst"><code><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> 301<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getDecimalValue()">getDecimalValue</a></strong>()</code> 302<div class="block">Numeric accessor that can be called when the current 303 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> or 304 <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>.</div> 305</td> 306</tr> 307<tr class="altColor"> 308<td class="colFirst"><code>double</code></td> 309<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getDoubleValue()">getDoubleValue</a></strong>()</code> 310<div class="block">Numeric accessor that can be called when the current 311 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 312 it can be expressed as a Java double primitive type.</div> 313</td> 314</tr> 315<tr class="rowColor"> 316<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> 317<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getEmbeddedObject()">getEmbeddedObject</a></strong>()</code> 318<div class="block">Accessor that can be called if (and only if) the current token 319 is <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT"><code>JsonToken.VALUE_EMBEDDED_OBJECT</code></a>.</div> 320</td> 321</tr> 322<tr class="altColor"> 323<td class="colFirst"><code>float</code></td> 324<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getFloatValue()">getFloatValue</a></strong>()</code> 325<div class="block">Numeric accessor that can be called when the current 326 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 327 it can be expressed as a Java float primitive type.</div> 328</td> 329</tr> 330<tr class="rowColor"> 331<td class="colFirst"><code>int</code></td> 332<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getIntValue()">getIntValue</a></strong>()</code> 333<div class="block">Numeric accessor that can be called when the current 334 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 335 it can be expressed as a value of Java int primitive type.</div> 336</td> 337</tr> 338<tr class="altColor"> 339<td class="colFirst"><code>long</code></td> 340<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getLongValue()">getLongValue</a></strong>()</code> 341<div class="block">Numeric accessor that can be called when the current 342 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 343 it can be expressed as a Java long primitive type.</div> 344</td> 345</tr> 346<tr class="rowColor"> 347<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a></code></td> 348<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getNumberType()">getNumberType</a></strong>()</code> 349<div class="block">If current token is of type 350 <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> or 351 <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>, returns 352 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> 353</td> 354</tr> 355<tr class="altColor"> 356<td class="colFirst"><code><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> 357<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getNumberValue()">getNumberValue</a></strong>()</code> 358<div class="block">Generic number value accessor method that will work for 359 all kinds of numeric values.</div> 360</td> 361</tr> 362<tr class="rowColor"> 363<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a></code></td> 364<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getParsingContext()">getParsingContext</a></strong>()</code> 365<div class="block">Method that can be used to access current parsing context reader 366 is in.</div> 367</td> 368</tr> 369<tr class="altColor"> 370<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 371<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getText()">getText</a></strong>()</code> 372<div class="block">Method for accessing textual representation of the current token; 373 if no current token (before first call to <a href="../../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>JsonParser.nextToken()</code></a>, or 374 after encountering end-of-input), returns null.</div> 375</td> 376</tr> 377<tr class="rowColor"> 378<td class="colFirst"><code>char[]</code></td> 379<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getTextCharacters()">getTextCharacters</a></strong>()</code> 380<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a>, but that will return 381 underlying (unmodifiable) character array that contains 382 textual value, instead of constructing a String object 383 to contain this information.</div> 384</td> 385</tr> 386<tr class="altColor"> 387<td class="colFirst"><code>int</code></td> 388<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getTextLength()">getTextLength</a></strong>()</code> 389<div class="block">Accessor used with <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a>, to know length 390 of String stored in returned buffer.</div> 391</td> 392</tr> 393<tr class="rowColor"> 394<td class="colFirst"><code>int</code></td> 395<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getTextOffset()">getTextOffset</a></strong>()</code> 396<div class="block">Accessor used with <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a>, to know offset 397 of the first text content character within buffer.</div> 398</td> 399</tr> 400<tr class="altColor"> 401<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a></code></td> 402<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#getTokenLocation()">getTokenLocation</a></strong>()</code> 403<div class="block">Method that return the <b>starting</b> location of the current 404 token; that is, position of the first character from input 405 that starts the current token.</div> 406</td> 407</tr> 408<tr class="rowColor"> 409<td class="colFirst"><code>boolean</code></td> 410<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#hasTextCharacters()">hasTextCharacters</a></strong>()</code> 411<div class="block">Method that can be used to determine whether calling of 412 <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a> would be the most efficient 413 way to access textual content for the event parser currently 414 points to.</div> 415</td> 416</tr> 417<tr class="altColor"> 418<td class="colFirst"><code>boolean</code></td> 419<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#isClosed()">isClosed</a></strong>()</code> 420<div class="block">Method that can be called to determine whether this parser 421 is closed or not.</div> 422</td> 423</tr> 424<tr class="rowColor"> 425<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 426<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#nextToken()">nextToken</a></strong>()</code> 427<div class="block">Main iteration method, which will advance stream enough 428 to determine type of the next token, if any.</div> 429</td> 430</tr> 431<tr class="altColor"> 432<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 433<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#peekNextToken()">peekNextToken</a></strong>()</code> </td> 434</tr> 435<tr class="rowColor"> 436<td class="colFirst"><code>void</code></td> 437<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.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> 438<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 439 parser, if any.</div> 440</td> 441</tr> 442<tr class="altColor"> 443<td class="colFirst"><code>void</code></td> 444<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html#setLocation(org.codehaus.jackson.JsonLocation)">setLocation</a></strong>(<a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> l)</code> </td> 445</tr> 446</table> 447<ul class="blockList"> 448<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.impl.JsonParserMinimalBase"> 449<!-- --> 450</a> 451<h3>Methods inherited from class org.codehaus.jackson.impl.<a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></h3> 452<code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_constructError(java.lang.String, java.lang.Throwable)">_constructError</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_decodeBase64(java.lang.String, org.codehaus.jackson.util.ByteArrayBuilder, org.codehaus.jackson.Base64Variant)">_decodeBase64</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_getCharDesc(int)">_getCharDesc</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_handleUnrecognizedCharacterEscape(char)">_handleUnrecognizedCharacterEscape</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportBase64EOF()">_reportBase64EOF</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportError(java.lang.String)">_reportError</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportInvalidBase64(org.codehaus.jackson.Base64Variant, char, int, java.lang.String)">_reportInvalidBase64</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportInvalidEOF()">_reportInvalidEOF</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportInvalidEOF(java.lang.String)">_reportInvalidEOF</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportInvalidEOFInValue()">_reportInvalidEOFInValue</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_reportUnexpectedChar(int, java.lang.String)">_reportUnexpectedChar</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_throwInternal()">_throwInternal</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_throwInvalidSpace(int)">_throwInvalidSpace</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_throwUnquotedSpace(int, java.lang.String)">_throwUnquotedSpace</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_wrapError(java.lang.String, java.lang.Throwable)">_wrapError</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getValueAsBoolean(boolean)">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getValueAsDouble(double)">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getValueAsInt(int)">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getValueAsLong(long)">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#skipChildren()">skipChildren</a></code></li> 453</ul> 454<ul class="blockList"> 455<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonParser"> 456<!-- --> 457</a> 458<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></h3> 459<code><a href="../../../../org/codehaus/jackson/JsonParser.html#_constructError(java.lang.String)">_constructError</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#canUseSchema(org.codehaus.jackson.FormatSchema)">canUseSchema</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#clearCurrentToken()">clearCurrentToken</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)">configure</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#disable(org.codehaus.jackson.JsonParser.Feature)">disable</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#disableFeature(org.codehaus.jackson.JsonParser.Feature)">disableFeature</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#enable(org.codehaus.jackson.JsonParser.Feature)">enable</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#enableFeature(org.codehaus.jackson.JsonParser.Feature)">enableFeature</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getBinaryValue()">getBinaryValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getBooleanValue()">getBooleanValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getByteValue()">getByteValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getCurrentToken()">getCurrentToken</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getInputSource()">getInputSource</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getLastClearedToken()">getLastClearedToken</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getShortValue()">getShortValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsBoolean()">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsDouble()">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsInt()">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsLong()">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#hasCurrentToken()">hasCurrentToken</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)">isEnabled</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#isExpectedStartArrayToken()">isExpectedStartArrayToken</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#isFeatureEnabled(org.codehaus.jackson.JsonParser.Feature)">isFeatureEnabled</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#nextBooleanValue()">nextBooleanValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#nextFieldName(org.codehaus.jackson.SerializableString)">nextFieldName</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#nextIntValue(int)">nextIntValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#nextLongValue(long)">nextLongValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#nextTextValue()">nextTextValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#nextValue()">nextValue</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#readValueAs(java.lang.Class)">readValueAs</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#readValueAs(org.codehaus.jackson.type.TypeReference)">readValueAs</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#readValueAsTree()">readValueAsTree</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#readValuesAs(java.lang.Class)">readValuesAs</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#readValuesAs(org.codehaus.jackson.type.TypeReference)">readValuesAs</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#releaseBuffered(java.io.OutputStream)">releaseBuffered</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#releaseBuffered(java.io.Writer)">releaseBuffered</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#setFeature(org.codehaus.jackson.JsonParser.Feature, boolean)">setFeature</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#setSchema(org.codehaus.jackson.FormatSchema)">setSchema</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#version()">version</a></code></li> 460</ul> 461<ul class="blockList"> 462<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 463<!-- --> 464</a> 465<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> 466<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> 467</ul> 468</li> 469</ul> 470</li> 471</ul> 472</div> 473<div class="details"> 474<ul class="blockList"> 475<li class="blockList"> 476<!-- ============ FIELD DETAIL =========== --> 477<ul class="blockList"> 478<li class="blockList"><a name="field_detail"> 479<!-- --> 480</a> 481<h3>Field Detail</h3> 482<a name="_codec"> 483<!-- --> 484</a> 485<ul class="blockList"> 486<li class="blockList"> 487<h4>_codec</h4> 488<pre>protected <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> _codec</pre> 489</li> 490</ul> 491<a name="_segment"> 492<!-- --> 493</a> 494<ul class="blockList"> 495<li class="blockList"> 496<h4>_segment</h4> 497<pre>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> _segment</pre> 498<div class="block">Currently active segment</div> 499</li> 500</ul> 501<a name="_segmentPtr"> 502<!-- --> 503</a> 504<ul class="blockList"> 505<li class="blockList"> 506<h4>_segmentPtr</h4> 507<pre>protected int _segmentPtr</pre> 508<div class="block">Pointer to current token within current segment</div> 509</li> 510</ul> 511<a name="_parsingContext"> 512<!-- --> 513</a> 514<ul class="blockList"> 515<li class="blockList"> 516<h4>_parsingContext</h4> 517<pre>protected <a href="../../../../org/codehaus/jackson/impl/JsonReadContext.html" title="class in org.codehaus.jackson.impl">JsonReadContext</a> _parsingContext</pre> 518<div class="block">Information about parser context, context in which 519 the next token is to be parsed (root, array, object).</div> 520</li> 521</ul> 522<a name="_closed"> 523<!-- --> 524</a> 525<ul class="blockList"> 526<li class="blockList"> 527<h4>_closed</h4> 528<pre>protected boolean _closed</pre> 529</li> 530</ul> 531<a name="_byteBuilder"> 532<!-- --> 533</a> 534<ul class="blockList"> 535<li class="blockList"> 536<h4>_byteBuilder</h4> 537<pre>protected transient <a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html" title="class in org.codehaus.jackson.util">ByteArrayBuilder</a> _byteBuilder</pre> 538</li> 539</ul> 540<a name="_location"> 541<!-- --> 542</a> 543<ul class="blockListLast"> 544<li class="blockList"> 545<h4>_location</h4> 546<pre>protected <a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> _location</pre> 547</li> 548</ul> 549</li> 550</ul> 551<!-- ========= CONSTRUCTOR DETAIL ======== --> 552<ul class="blockList"> 553<li class="blockList"><a name="constructor_detail"> 554<!-- --> 555</a> 556<h3>Constructor Detail</h3> 557<a name="TokenBuffer.Parser(org.codehaus.jackson.util.TokenBuffer.Segment, org.codehaus.jackson.ObjectCodec)"> 558<!-- --> 559</a> 560<ul class="blockListLast"> 561<li class="blockList"> 562<h4>TokenBuffer.Parser</h4> 563<pre>public TokenBuffer.Parser(<a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> firstSeg, 564 <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</pre> 565</li> 566</ul> 567</li> 568</ul> 569<!-- ============ METHOD DETAIL ========== --> 570<ul class="blockList"> 571<li class="blockList"><a name="method_detail"> 572<!-- --> 573</a> 574<h3>Method Detail</h3> 575<a name="setLocation(org.codehaus.jackson.JsonLocation)"> 576<!-- --> 577</a> 578<ul class="blockList"> 579<li class="blockList"> 580<h4>setLocation</h4> 581<pre>public void setLocation(<a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> l)</pre> 582</li> 583</ul> 584<a name="getCodec()"> 585<!-- --> 586</a> 587<ul class="blockList"> 588<li class="blockList"> 589<h4>getCodec</h4> 590<pre>public <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> 591<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getCodec()">JsonParser</a></code></strong></div> 592<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 593 parser, if any. Codec is used by <a href="../../../../org/codehaus/jackson/JsonParser.html#readValueAs(java.lang.Class)"><code>JsonParser.readValueAs(Class)</code></a> 594 method (and its variants).</div> 595<dl> 596<dt><strong>Specified by:</strong></dt> 597<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getCodec()">getCodec</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 598</dl> 599</li> 600</ul> 601<a name="setCodec(org.codehaus.jackson.ObjectCodec)"> 602<!-- --> 603</a> 604<ul class="blockList"> 605<li class="blockList"> 606<h4>setCodec</h4> 607<pre>public void setCodec(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> c)</pre> 608<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#setCodec(org.codehaus.jackson.ObjectCodec)">JsonParser</a></code></strong></div> 609<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 610 parser, if any. Codec is used by <a href="../../../../org/codehaus/jackson/JsonParser.html#readValueAs(java.lang.Class)"><code>JsonParser.readValueAs(Class)</code></a> 611 method (and its variants).</div> 612<dl> 613<dt><strong>Specified by:</strong></dt> 614<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 615</dl> 616</li> 617</ul> 618<a name="peekNextToken()"> 619<!-- --> 620</a> 621<ul class="blockList"> 622<li class="blockList"> 623<h4>peekNextToken</h4> 624<pre>public <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> peekNextToken() 625 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>, 626 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 627<dl><dt><span class="strong">Throws:</span></dt> 628<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> 629<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 630</li> 631</ul> 632<a name="close()"> 633<!-- --> 634</a> 635<ul class="blockList"> 636<li class="blockList"> 637<h4>close</h4> 638<pre>public void close() 639 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> 640<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#close()">JsonParser</a></code></strong></div> 641<div class="block">Closes the parser so that no further iteration or data access 642 can be made; will also close the underlying input source 643 if parser either <b>owns</b> the input source, or feature 644 <a href="../../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled. 645 Whether parser owns the input source depends on factory 646 method that was used to construct instance (so check 647 <a href="../../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> for details, 648 but the general 649 idea is that if caller passes in closable resource (such 650 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 651 own the source; but if it passes a reference (such as 652 <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 653 stream or reader it does own them.</div> 654<dl> 655<dt><strong>Specified by:</strong></dt> 656<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> 657<dt><strong>Specified by:</strong></dt> 658<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> 659<dt><strong>Specified by:</strong></dt> 660<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#close()">close</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 661<dt><span class="strong">Throws:</span></dt> 662<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> 663</li> 664</ul> 665<a name="nextToken()"> 666<!-- --> 667</a> 668<ul class="blockList"> 669<li class="blockList"> 670<h4>nextToken</h4> 671<pre>public <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> nextToken() 672 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>, 673 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 674<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#nextToken()">JsonParser</a></code></strong></div> 675<div class="block">Main iteration method, which will advance stream enough 676 to determine type of the next token, if any. If none 677 remaining (stream has no content other than possible 678 white space before ending), null will be returned.</div> 679<dl> 680<dt><strong>Specified by:</strong></dt> 681<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#nextToken()">nextToken</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 682<dt><span class="strong">Returns:</span></dt><dd>Next token from the stream, if any found, or null 683 to indicate end-of-input</dd> 684<dt><span class="strong">Throws:</span></dt> 685<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> 686<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 687</li> 688</ul> 689<a name="isClosed()"> 690<!-- --> 691</a> 692<ul class="blockList"> 693<li class="blockList"> 694<h4>isClosed</h4> 695<pre>public boolean isClosed()</pre> 696<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#isClosed()">JsonParser</a></code></strong></div> 697<div class="block">Method that can be called to determine whether this parser 698 is closed or not. If it is closed, no new tokens can be 699 retrieved by calling <a href="../../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>JsonParser.nextToken()</code></a> (and the underlying 700 stream may be closed). Closing may be due to an explicit 701 call to <a href="../../../../org/codehaus/jackson/JsonParser.html#close()"><code>JsonParser.close()</code></a> or because parser has encountered 702 end of input.</div> 703<dl> 704<dt><strong>Specified by:</strong></dt> 705<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#isClosed()">isClosed</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 706</dl> 707</li> 708</ul> 709<a name="getParsingContext()"> 710<!-- --> 711</a> 712<ul class="blockList"> 713<li class="blockList"> 714<h4>getParsingContext</h4> 715<pre>public <a href="../../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a> getParsingContext()</pre> 716<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getParsingContext()">JsonParser</a></code></strong></div> 717<div class="block">Method that can be used to access current parsing context reader 718 is in. There are 3 different types: root, array and object contexts, 719 with slightly different available information. Contexts are 720 hierarchically nested, and can be used for example for figuring 721 out part of the input document that correspond to specific 722 array or object (for highlighting purposes, or error reporting). 723 Contexts can also be used for simple xpath-like matching of 724 input, if so desired.</div> 725<dl> 726<dt><strong>Specified by:</strong></dt> 727<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getParsingContext()">getParsingContext</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 728</dl> 729</li> 730</ul> 731<a name="getTokenLocation()"> 732<!-- --> 733</a> 734<ul class="blockList"> 735<li class="blockList"> 736<h4>getTokenLocation</h4> 737<pre>public <a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> getTokenLocation()</pre> 738<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getTokenLocation()">JsonParser</a></code></strong></div> 739<div class="block">Method that return the <b>starting</b> location of the current 740 token; that is, position of the first character from input 741 that starts the current token.</div> 742<dl> 743<dt><strong>Specified by:</strong></dt> 744<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getTokenLocation()">getTokenLocation</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 745</dl> 746</li> 747</ul> 748<a name="getCurrentLocation()"> 749<!-- --> 750</a> 751<ul class="blockList"> 752<li class="blockList"> 753<h4>getCurrentLocation</h4> 754<pre>public <a href="../../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> getCurrentLocation()</pre> 755<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getCurrentLocation()">JsonParser</a></code></strong></div> 756<div class="block">Method that returns location of the last processed character; 757 usually for error reporting purposes.</div> 758<dl> 759<dt><strong>Specified by:</strong></dt> 760<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getCurrentLocation()">getCurrentLocation</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 761</dl> 762</li> 763</ul> 764<a name="getCurrentName()"> 765<!-- --> 766</a> 767<ul class="blockList"> 768<li class="blockList"> 769<h4>getCurrentName</h4> 770<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> getCurrentName()</pre> 771<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getCurrentName()">JsonParser</a></code></strong></div> 772<div class="block">Method that can be called to get the name associated with 773 the current token: for <a href="../../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a>s it will 774 be the same as what <a href="../../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a> returns; 775 for field values it will be preceding field name; 776 and for others (array values, root-level values) null.</div> 777<dl> 778<dt><strong>Specified by:</strong></dt> 779<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getCurrentName()">getCurrentName</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 780</dl> 781</li> 782</ul> 783<a name="getText()"> 784<!-- --> 785</a> 786<ul class="blockList"> 787<li class="blockList"> 788<h4>getText</h4> 789<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> getText()</pre> 790<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getText()">JsonParser</a></code></strong></div> 791<div class="block">Method for accessing textual representation of the current token; 792 if no current token (before first call to <a href="../../../../org/codehaus/jackson/JsonParser.html#nextToken()"><code>JsonParser.nextToken()</code></a>, or 793 after encountering end-of-input), returns null. 794 Method can be called for any token type.</div> 795<dl> 796<dt><strong>Specified by:</strong></dt> 797<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getText()">getText</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 798</dl> 799</li> 800</ul> 801<a name="getTextCharacters()"> 802<!-- --> 803</a> 804<ul class="blockList"> 805<li class="blockList"> 806<h4>getTextCharacters</h4> 807<pre>public char[] getTextCharacters()</pre> 808<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()">JsonParser</a></code></strong></div> 809<div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a>, but that will return 810 underlying (unmodifiable) character array that contains 811 textual value, instead of constructing a String object 812 to contain this information. 813 Note, however, that: 814<ul> 815 <li>Textual contents are not guaranteed to start at 816 index 0 (rather, call <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextOffset()"><code>JsonParser.getTextOffset()</code></a>) to 817 know the actual offset 818 </li> 819 <li>Length of textual contents may be less than the 820 length of returned buffer: call <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextLength()"><code>JsonParser.getTextLength()</code></a> 821 for actual length of returned content. 822 </li> 823 </ul> 824<p> 825 Note that caller <b>MUST NOT</b> modify the returned 826 character array in any way -- doing so may corrupt 827 current parser state and render parser instance useless. 828<p> 829 The only reason to call this method (over <a href="../../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a>) 830 is to avoid construction of a String object (which 831 will make a copy of contents).</div> 832<dl> 833<dt><strong>Specified by:</strong></dt> 834<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getTextCharacters()">getTextCharacters</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 835</dl> 836</li> 837</ul> 838<a name="getTextLength()"> 839<!-- --> 840</a> 841<ul class="blockList"> 842<li class="blockList"> 843<h4>getTextLength</h4> 844<pre>public int getTextLength()</pre> 845<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getTextLength()">JsonParser</a></code></strong></div> 846<div class="block">Accessor used with <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a>, to know length 847 of String stored in returned buffer.</div> 848<dl> 849<dt><strong>Specified by:</strong></dt> 850<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getTextLength()">getTextLength</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 851<dt><span class="strong">Returns:</span></dt><dd>Number of characters within buffer returned 852 by <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a> that are part of 853 textual content of the current token.</dd></dl> 854</li> 855</ul> 856<a name="getTextOffset()"> 857<!-- --> 858</a> 859<ul class="blockList"> 860<li class="blockList"> 861<h4>getTextOffset</h4> 862<pre>public int getTextOffset()</pre> 863<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getTextOffset()">JsonParser</a></code></strong></div> 864<div class="block">Accessor used with <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a>, to know offset 865 of the first text content character within buffer.</div> 866<dl> 867<dt><strong>Specified by:</strong></dt> 868<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getTextOffset()">getTextOffset</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 869<dt><span class="strong">Returns:</span></dt><dd>Offset of the first character within buffer returned 870 by <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a> that is part of 871 textual content of the current token.</dd></dl> 872</li> 873</ul> 874<a name="hasTextCharacters()"> 875<!-- --> 876</a> 877<ul class="blockList"> 878<li class="blockList"> 879<h4>hasTextCharacters</h4> 880<pre>public boolean hasTextCharacters()</pre> 881<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#hasTextCharacters()">JsonParser</a></code></strong></div> 882<div class="block">Method that can be used to determine whether calling of 883 <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a> would be the most efficient 884 way to access textual content for the event parser currently 885 points to. 886<p> 887 Default implementation simply returns false since only actual 888 implementation class has knowledge of its internal buffering 889 state. 890 Implementations are strongly encouraged to properly override 891 this method, to allow efficient copying of content by other 892 code.</div> 893<dl> 894<dt><strong>Specified by:</strong></dt> 895<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#hasTextCharacters()">hasTextCharacters</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 896<dt><span class="strong">Returns:</span></dt><dd>True if parser currently has character array that can 897 be efficiently returned via <a href="../../../../org/codehaus/jackson/JsonParser.html#getTextCharacters()"><code>JsonParser.getTextCharacters()</code></a>; false 898 means that it may or may not exist</dd></dl> 899</li> 900</ul> 901<a name="getBigIntegerValue()"> 902<!-- --> 903</a> 904<ul class="blockList"> 905<li class="blockList"> 906<h4>getBigIntegerValue</h4> 907<pre>public <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() 908 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>, 909 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 910<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getBigIntegerValue()">JsonParser</a></code></strong></div> 911<div class="block">Numeric accessor that can be called when the current 912 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 913 it can not be used as a Java long primitive type due to its 914 magnitude. 915 It can also be called for <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 916 if so, it is equivalent to calling <a href="../../../../org/codehaus/jackson/JsonParser.html#getDecimalValue()"><code>JsonParser.getDecimalValue()</code></a> 917 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> 918<dl> 919<dt><strong>Specified by:</strong></dt> 920<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getBigIntegerValue()">getBigIntegerValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 921<dt><span class="strong">Throws:</span></dt> 922<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> 923<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 924</li> 925</ul> 926<a name="getDecimalValue()"> 927<!-- --> 928</a> 929<ul class="blockList"> 930<li class="blockList"> 931<h4>getDecimalValue</h4> 932<pre>public <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() 933 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>, 934 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 935<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getDecimalValue()">JsonParser</a></code></strong></div> 936<div class="block">Numeric accessor that can be called when the current 937 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> or 938 <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>. No under/overflow exceptions 939 are ever thrown.</div> 940<dl> 941<dt><strong>Specified by:</strong></dt> 942<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getDecimalValue()">getDecimalValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 943<dt><span class="strong">Throws:</span></dt> 944<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> 945<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 946</li> 947</ul> 948<a name="getDoubleValue()"> 949<!-- --> 950</a> 951<ul class="blockList"> 952<li class="blockList"> 953<h4>getDoubleValue</h4> 954<pre>public double getDoubleValue() 955 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>, 956 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 957<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()">JsonParser</a></code></strong></div> 958<div class="block">Numeric accessor that can be called when the current 959 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 960 it can be expressed as a Java double primitive type. 961 It can also be called for <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>; 962 if so, it is equivalent to calling <a href="../../../../org/codehaus/jackson/JsonParser.html#getLongValue()"><code>JsonParser.getLongValue()</code></a> 963 and then casting; except for possible overflow/underflow 964 exception. 965<p> 966 Note: if the value falls 967 outside of range of Java double, a <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 968 will be thrown to indicate numeric overflow/underflow.</div> 969<dl> 970<dt><strong>Specified by:</strong></dt> 971<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()">getDoubleValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 972<dt><span class="strong">Throws:</span></dt> 973<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> 974<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 975</li> 976</ul> 977<a name="getFloatValue()"> 978<!-- --> 979</a> 980<ul class="blockList"> 981<li class="blockList"> 982<h4>getFloatValue</h4> 983<pre>public float getFloatValue() 984 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>, 985 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 986<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getFloatValue()">JsonParser</a></code></strong></div> 987<div class="block">Numeric accessor that can be called when the current 988 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a> and 989 it can be expressed as a Java float primitive type. 990 It can also be called for <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a>; 991 if so, it is equivalent to calling <a href="../../../../org/codehaus/jackson/JsonParser.html#getLongValue()"><code>JsonParser.getLongValue()</code></a> 992 and then casting; except for possible overflow/underflow 993 exception. 994<p> 995 Note: if the value falls 996 outside of range of Java float, a <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 997 will be thrown to indicate numeric overflow/underflow.</div> 998<dl> 999<dt><strong>Specified by:</strong></dt> 1000<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getFloatValue()">getFloatValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 1001<dt><span class="strong">Throws:</span></dt> 1002<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> 1003<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1004</li> 1005</ul> 1006<a name="getIntValue()"> 1007<!-- --> 1008</a> 1009<ul class="blockList"> 1010<li class="blockList"> 1011<h4>getIntValue</h4> 1012<pre>public int getIntValue() 1013 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>, 1014 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1015<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getIntValue()">JsonParser</a></code></strong></div> 1016<div class="block">Numeric accessor that can be called when the current 1017 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1018 it can be expressed as a value of Java int primitive type. 1019 It can also be called for <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1020 if so, it is equivalent to calling <a href="../../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()"><code>JsonParser.getDoubleValue()</code></a> 1021 and then casting; except for possible overflow/underflow 1022 exception. 1023<p> 1024 Note: if the resulting integer value falls outside range of 1025 Java int, a <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1026 may be thrown to indicate numeric overflow/underflow.</div> 1027<dl> 1028<dt><strong>Specified by:</strong></dt> 1029<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getIntValue()">getIntValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 1030<dt><span class="strong">Throws:</span></dt> 1031<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> 1032<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1033</li> 1034</ul> 1035<a name="getLongValue()"> 1036<!-- --> 1037</a> 1038<ul class="blockList"> 1039<li class="blockList"> 1040<h4>getLongValue</h4> 1041<pre>public long getLongValue() 1042 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>, 1043 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1044<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getLongValue()">JsonParser</a></code></strong></div> 1045<div class="block">Numeric accessor that can be called when the current 1046 token is of type <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> and 1047 it can be expressed as a Java long primitive type. 1048 It can also be called for <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>; 1049 if so, it is equivalent to calling <a href="../../../../org/codehaus/jackson/JsonParser.html#getDoubleValue()"><code>JsonParser.getDoubleValue()</code></a> 1050 and then casting to int; except for possible overflow/underflow 1051 exception. 1052<p> 1053 Note: if the token is an integer, but its value falls 1054 outside of range of Java long, a <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson"><code>JsonParseException</code></a> 1055 may be thrown to indicate numeric overflow/underflow.</div> 1056<dl> 1057<dt><strong>Specified by:</strong></dt> 1058<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getLongValue()">getLongValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 1059<dt><span class="strong">Throws:</span></dt> 1060<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> 1061<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1062</li> 1063</ul> 1064<a name="getNumberType()"> 1065<!-- --> 1066</a> 1067<ul class="blockList"> 1068<li class="blockList"> 1069<h4>getNumberType</h4> 1070<pre>public <a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a> getNumberType() 1071 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>, 1072 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1073<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getNumberType()">JsonParser</a></code></strong></div> 1074<div class="block">If current token is of type 1075 <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT"><code>JsonToken.VALUE_NUMBER_INT</code></a> or 1076 <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT"><code>JsonToken.VALUE_NUMBER_FLOAT</code></a>, returns 1077 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> 1078<dl> 1079<dt><strong>Specified by:</strong></dt> 1080<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getNumberType()">getNumberType</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 1081<dt><span class="strong">Throws:</span></dt> 1082<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> 1083<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1084</li> 1085</ul> 1086<a name="getNumberValue()"> 1087<!-- --> 1088</a> 1089<ul class="blockList"> 1090<li class="blockList"> 1091<h4>getNumberValue</h4> 1092<pre>public final <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() 1093 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>, 1094 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1095<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getNumberValue()">JsonParser</a></code></strong></div> 1096<div class="block">Generic number value accessor method that will work for 1097 all kinds of numeric values. It will return the optimal 1098 (simplest/smallest possible) wrapper object that can 1099 express the numeric value just parsed.</div> 1100<dl> 1101<dt><strong>Specified by:</strong></dt> 1102<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getNumberValue()">getNumberValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 1103<dt><span class="strong">Throws:</span></dt> 1104<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> 1105<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1106</li> 1107</ul> 1108<a name="getEmbeddedObject()"> 1109<!-- --> 1110</a> 1111<ul class="blockList"> 1112<li class="blockList"> 1113<h4>getEmbeddedObject</h4> 1114<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()</pre> 1115<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getEmbeddedObject()">JsonParser</a></code></strong></div> 1116<div class="block">Accessor that can be called if (and only if) the current token 1117 is <a href="../../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT"><code>JsonToken.VALUE_EMBEDDED_OBJECT</code></a>. For other token types, 1118 null is returned. 1119<p> 1120 Note: only some specialized parser implementations support 1121 embedding of objects (usually ones that are facades on top 1122 of non-streaming sources, such as object trees).</div> 1123<dl> 1124<dt><strong>Overrides:</strong></dt> 1125<dd><code><a href="../../../../org/codehaus/jackson/JsonParser.html#getEmbeddedObject()">getEmbeddedObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></dd> 1126</dl> 1127</li> 1128</ul> 1129<a name="getBinaryValue(org.codehaus.jackson.Base64Variant)"> 1130<!-- --> 1131</a> 1132<ul class="blockList"> 1133<li class="blockList"> 1134<h4>getBinaryValue</h4> 1135<pre>public byte[] getBinaryValue(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant) 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#getBinaryValue(org.codehaus.jackson.Base64Variant)">JsonParser</a></code></strong></div> 1139<div class="block">Method that can be used to read (and consume -- results 1140 may not be accessible using other methods after the call) 1141 base64-encoded binary data 1142 included in the current textual JSON value. 1143 It works similar to getting String value via <a href="../../../../org/codehaus/jackson/JsonParser.html#getText()"><code>JsonParser.getText()</code></a> 1144 and decoding result (except for decoding part), 1145 but should be significantly more performant. 1146<p> 1147 Note that non-decoded textual contents of the current token 1148 are not guaranteed to be accessible after this method 1149 is called. Current implementation, for example, clears up 1150 textual content during decoding. 1151 Decoded binary content, however, will be retained until 1152 parser is advanced to the next event.</div> 1153<dl> 1154<dt><strong>Specified by:</strong></dt> 1155<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#getBinaryValue(org.codehaus.jackson.Base64Variant)">getBinaryValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 1156<dt><span class="strong">Parameters:</span></dt><dd><code>b64variant</code> - Expected variant of base64 encoded 1157 content (see <a href="../../../../org/codehaus/jackson/Base64Variants.html" title="class in org.codehaus.jackson"><code>Base64Variants</code></a> for definitions 1158 of "standard" variants).</dd> 1159<dt><span class="strong">Returns:</span></dt><dd>Decoded binary data</dd> 1160<dt><span class="strong">Throws:</span></dt> 1161<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> 1162<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1163</li> 1164</ul> 1165<a name="_currentObject()"> 1166<!-- --> 1167</a> 1168<ul class="blockList"> 1169<li class="blockList"> 1170<h4>_currentObject</h4> 1171<pre>protected final <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> _currentObject()</pre> 1172</li> 1173</ul> 1174<a name="_checkIsNumber()"> 1175<!-- --> 1176</a> 1177<ul class="blockList"> 1178<li class="blockList"> 1179<h4>_checkIsNumber</h4> 1180<pre>protected final void _checkIsNumber() 1181 throws <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1182<dl><dt><span class="strong">Throws:</span></dt> 1183<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1184</li> 1185</ul> 1186<a name="_handleEOF()"> 1187<!-- --> 1188</a> 1189<ul class="blockListLast"> 1190<li class="blockList"> 1191<h4>_handleEOF</h4> 1192<pre>protected void _handleEOF() 1193 throws <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 1194<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_handleEOF()">JsonParserMinimalBase</a></code></strong></div> 1195<div class="block">Method sub-classes need to implement</div> 1196<dl> 1197<dt><strong>Specified by:</strong></dt> 1198<dd><code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html#_handleEOF()">_handleEOF</a></code> in class <code><a href="../../../../org/codehaus/jackson/impl/JsonParserMinimalBase.html" title="class in org.codehaus.jackson.impl">JsonParserMinimalBase</a></code></dd> 1199<dt><span class="strong">Throws:</span></dt> 1200<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 1201</li> 1202</ul> 1203</li> 1204</ul> 1205</li> 1206</ul> 1207</div> 1208</div> 1209<!-- ========= END OF CLASS DATA ========= --> 1210<!-- ======= START OF BOTTOM NAVBAR ====== --> 1211<div class="bottomNav"><a name="navbar_bottom"> 1212<!-- --> 1213</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 1214<!-- --> 1215</a> 1216<ul class="navList" title="Navigation"> 1217<li><a href="../../../../overview-summary.html">Overview</a></li> 1218<li><a href="package-summary.html">Package</a></li> 1219<li class="navBarCell1Rev">Class</li> 1220<li><a href="class-use/TokenBuffer.Parser.html">Use</a></li> 1221<li><a href="package-tree.html">Tree</a></li> 1222<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 1223<li><a href="../../../../index-all.html">Index</a></li> 1224<li><a href="../../../../help-doc.html">Help</a></li> 1225</ul> 1226</div> 1227<div class="subNav"> 1228<ul class="navList"> 1229<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 1230<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> 1231</ul> 1232<ul class="navList"> 1233<li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.Parser.html" target="_top">Frames</a></li> 1234<li><a href="TokenBuffer.Parser.html" target="_top">No Frames</a></li> 1235</ul> 1236<ul class="navList" id="allclasses_navbar_bottom"> 1237<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 1238</ul> 1239<div> 1240<script type="text/javascript"><!-- 1241 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 1242 if(window==top) { 1243 allClassesLink.style.display = "block"; 1244 } 1245 else { 1246 allClassesLink.style.display = "none"; 1247 } 1248 //--> 1249</script> 1250</div> 1251<div> 1252<ul class="subNavList"> 1253<li>Summary: </li> 1254<li><a href="#nested_classes_inherited_from_class_org.codehaus.jackson.JsonParser">Nested</a> | </li> 1255<li><a href="#field_summary">Field</a> | </li> 1256<li><a href="#constructor_summary">Constr</a> | </li> 1257<li><a href="#method_summary">Method</a></li> 1258</ul> 1259<ul class="subNavList"> 1260<li>Detail: </li> 1261<li><a href="#field_detail">Field</a> | </li> 1262<li><a href="#constructor_detail">Constr</a> | </li> 1263<li><a href="#method_detail">Method</a></li> 1264</ul> 1265</div> 1266<a name="skip-navbar_bottom"> 1267<!-- --> 1268</a></div> 1269<!-- ======== END OF BOTTOM NAVBAR ======= --> 1270</body> 1271</html> 1272