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>JsonParserSequence (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="JsonParserSequence (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/JsonParserSequence.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/JsonParserDelegate.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/util/MinimalPrettyPrinter.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/JsonParserSequence.html" target="_top">Frames</a></li> 44<li><a href="JsonParserSequence.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 JsonParserSequence" class="title">Class JsonParserSequence</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/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">org.codehaus.jackson.util.JsonParserDelegate</a></li> 94<li> 95<ul class="inheritance"> 96<li>org.codehaus.jackson.util.JsonParserSequence</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<hr> 112<br> 113<pre>public class <span class="strong">JsonParserSequence</span> 114extends <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">JsonParserDelegate</a></pre> 115<div class="block">Helper class that can be used to sequence multiple physical 116 <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a>s to create a single logical sequence of 117 tokens, as a single <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a>. 118<p> 119 Fairly simple use of <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util"><code>JsonParserDelegate</code></a>: only need 120 to override <a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#nextToken()"><code>nextToken()</code></a> to handle transition</div> 121<dl><dt><span class="strong">Since:</span></dt> 122 <dd>1.5</dd> 123<dt><span class="strong">Author:</span></dt> 124 <dd>tatu</dd></dl> 125</li> 126</ul> 127</div> 128<div class="summary"> 129<ul class="blockList"> 130<li class="blockList"> 131<!-- ======== NESTED CLASS SUMMARY ======== --> 132<ul class="blockList"> 133<li class="blockList"><a name="nested_class_summary"> 134<!-- --> 135</a> 136<h3>Nested Class Summary</h3> 137<ul class="blockList"> 138<li class="blockList"><a name="nested_classes_inherited_from_class_org.codehaus.jackson.JsonParser"> 139<!-- --> 140</a> 141<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> 142<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> 143</ul> 144</li> 145</ul> 146<!-- =========== FIELD SUMMARY =========== --> 147<ul class="blockList"> 148<li class="blockList"><a name="field_summary"> 149<!-- --> 150</a> 151<h3>Field Summary</h3> 152<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 153<caption><span>Fields</span><span class="tabEnd"> </span></caption> 154<tr> 155<th class="colFirst" scope="col">Modifier and Type</th> 156<th class="colLast" scope="col">Field and Description</th> 157</tr> 158<tr class="altColor"> 159<td class="colFirst"><code>protected int</code></td> 160<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#_nextParser">_nextParser</a></strong></code> 161<div class="block">Index of the next parser in <a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#_parsers"><code>_parsers</code></a>.</div> 162</td> 163</tr> 164<tr class="rowColor"> 165<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a>[]</code></td> 166<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#_parsers">_parsers</a></strong></code> 167<div class="block">Parsers other than the first one (which is initially assigned 168 as delegate)</div> 169</td> 170</tr> 171</table> 172<ul class="blockList"> 173<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.util.JsonParserDelegate"> 174<!-- --> 175</a> 176<h3>Fields inherited from class org.codehaus.jackson.util.<a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">JsonParserDelegate</a></h3> 177<code><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#delegate">delegate</a></code></li> 178</ul> 179<ul class="blockList"> 180<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonParser"> 181<!-- --> 182</a> 183<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></h3> 184<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> 185</ul> 186</li> 187</ul> 188<!-- ======== CONSTRUCTOR SUMMARY ======== --> 189<ul class="blockList"> 190<li class="blockList"><a name="constructor_summary"> 191<!-- --> 192</a> 193<h3>Constructor Summary</h3> 194<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 195<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 196<tr> 197<th class="colFirst" scope="col">Modifier</th> 198<th class="colLast" scope="col">Constructor and Description</th> 199</tr> 200<tr class="altColor"> 201<td class="colFirst"><code>protected </code></td> 202<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#JsonParserSequence(org.codehaus.jackson.JsonParser[])">JsonParserSequence</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a>[] parsers)</code> </td> 203</tr> 204</table> 205</li> 206</ul> 207<!-- ========== METHOD SUMMARY =========== --> 208<ul class="blockList"> 209<li class="blockList"><a name="method_summary"> 210<!-- --> 211</a> 212<h3>Method Summary</h3> 213<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 214<caption><span>Methods</span><span class="tabEnd"> </span></caption> 215<tr> 216<th class="colFirst" scope="col">Modifier and Type</th> 217<th class="colLast" scope="col">Method and Description</th> 218</tr> 219<tr class="altColor"> 220<td class="colFirst"><code>protected void</code></td> 221<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#addFlattenedActiveParsers(java.util.List)">addFlattenedActiveParsers</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a>> result)</code> </td> 222</tr> 223<tr class="rowColor"> 224<td class="colFirst"><code>void</code></td> 225<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#close()">close</a></strong>()</code> 226<div class="block">Closes the parser so that no further iteration or data access 227 can be made; will also close the underlying input source 228 if parser either <b>owns</b> the input source, or feature 229 <a href="../../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled.</div> 230</td> 231</tr> 232<tr class="altColor"> 233<td class="colFirst"><code>int</code></td> 234<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#containedParsersCount()">containedParsersCount</a></strong>()</code> 235<div class="block">Method that is most useful for debugging or testing; 236 returns actual number of underlying parsers sequence 237 was constructed with (nor just ones remaining active)</div> 238</td> 239</tr> 240<tr class="rowColor"> 241<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html" title="class in org.codehaus.jackson.util">JsonParserSequence</a></code></td> 242<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#createFlattened(org.codehaus.jackson.JsonParser, org.codehaus.jackson.JsonParser)">createFlattened</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> first, 243 <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> second)</code> 244<div class="block">Method that will construct a parser (possibly a sequence) that 245 contains all given sub-parsers.</div> 246</td> 247</tr> 248<tr class="altColor"> 249<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 250<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#nextToken()">nextToken</a></strong>()</code> 251<div class="block">Main iteration method, which will advance stream enough 252 to determine type of the next token, if any.</div> 253</td> 254</tr> 255<tr class="rowColor"> 256<td class="colFirst"><code>protected boolean</code></td> 257<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#switchToNext()">switchToNext</a></strong>()</code> 258<div class="block">Method that will switch active parser from the current one 259 to next parser in sequence, if there is another parser left, 260 making this the new delegate.</div> 261</td> 262</tr> 263</table> 264<ul class="blockList"> 265<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.util.JsonParserDelegate"> 266<!-- --> 267</a> 268<h3>Methods inherited from class org.codehaus.jackson.util.<a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">JsonParserDelegate</a></h3> 269<code><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#canUseSchema(org.codehaus.jackson.FormatSchema)">canUseSchema</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#clearCurrentToken()">clearCurrentToken</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#disable(org.codehaus.jackson.JsonParser.Feature)">disable</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#enable(org.codehaus.jackson.JsonParser.Feature)">enable</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getBigIntegerValue()">getBigIntegerValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getBinaryValue(org.codehaus.jackson.Base64Variant)">getBinaryValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getBooleanValue()">getBooleanValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getByteValue()">getByteValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getCodec()">getCodec</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getCurrentLocation()">getCurrentLocation</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getCurrentName()">getCurrentName</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getCurrentToken()">getCurrentToken</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getDecimalValue()">getDecimalValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getDoubleValue()">getDoubleValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getEmbeddedObject()">getEmbeddedObject</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getFloatValue()">getFloatValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getInputSource()">getInputSource</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getIntValue()">getIntValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getLastClearedToken()">getLastClearedToken</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getLongValue()">getLongValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getNumberType()">getNumberType</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getNumberValue()">getNumberValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getParsingContext()">getParsingContext</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getShortValue()">getShortValue</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getText()">getText</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getTextCharacters()">getTextCharacters</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getTextLength()">getTextLength</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getTextOffset()">getTextOffset</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#getTokenLocation()">getTokenLocation</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#hasCurrentToken()">hasCurrentToken</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#isClosed()">isClosed</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)">isEnabled</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#setSchema(org.codehaus.jackson.FormatSchema)">setSchema</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#skipChildren()">skipChildren</a>, <a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#version()">version</a></code></li> 270</ul> 271<ul class="blockList"> 272<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonParser"> 273<!-- --> 274</a> 275<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></h3> 276<code><a href="../../../../org/codehaus/jackson/JsonParser.html#_constructError(java.lang.String)">_constructError</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)">configure</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#disableFeature(org.codehaus.jackson.JsonParser.Feature)">disableFeature</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#getValueAsBoolean()">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsBoolean(boolean)">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsDouble()">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsDouble(double)">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsInt()">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsInt(int)">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsLong()">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#getValueAsLong(long)">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonParser.html#hasTextCharacters()">hasTextCharacters</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></code></li> 277</ul> 278<ul class="blockList"> 279<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 280<!-- --> 281</a> 282<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> 283<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> 284</ul> 285</li> 286</ul> 287</li> 288</ul> 289</div> 290<div class="details"> 291<ul class="blockList"> 292<li class="blockList"> 293<!-- ============ FIELD DETAIL =========== --> 294<ul class="blockList"> 295<li class="blockList"><a name="field_detail"> 296<!-- --> 297</a> 298<h3>Field Detail</h3> 299<a name="_parsers"> 300<!-- --> 301</a> 302<ul class="blockList"> 303<li class="blockList"> 304<h4>_parsers</h4> 305<pre>protected final <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a>[] _parsers</pre> 306<div class="block">Parsers other than the first one (which is initially assigned 307 as delegate)</div> 308</li> 309</ul> 310<a name="_nextParser"> 311<!-- --> 312</a> 313<ul class="blockListLast"> 314<li class="blockList"> 315<h4>_nextParser</h4> 316<pre>protected int _nextParser</pre> 317<div class="block">Index of the next parser in <a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html#_parsers"><code>_parsers</code></a>.</div> 318</li> 319</ul> 320</li> 321</ul> 322<!-- ========= CONSTRUCTOR DETAIL ======== --> 323<ul class="blockList"> 324<li class="blockList"><a name="constructor_detail"> 325<!-- --> 326</a> 327<h3>Constructor Detail</h3> 328<a name="JsonParserSequence(org.codehaus.jackson.JsonParser[])"> 329<!-- --> 330</a> 331<ul class="blockListLast"> 332<li class="blockList"> 333<h4>JsonParserSequence</h4> 334<pre>protected JsonParserSequence(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a>[] parsers)</pre> 335</li> 336</ul> 337</li> 338</ul> 339<!-- ============ METHOD DETAIL ========== --> 340<ul class="blockList"> 341<li class="blockList"><a name="method_detail"> 342<!-- --> 343</a> 344<h3>Method Detail</h3> 345<a name="createFlattened(org.codehaus.jackson.JsonParser, org.codehaus.jackson.JsonParser)"> 346<!-- --> 347</a> 348<ul class="blockList"> 349<li class="blockList"> 350<h4>createFlattened</h4> 351<pre>public static <a href="../../../../org/codehaus/jackson/util/JsonParserSequence.html" title="class in org.codehaus.jackson.util">JsonParserSequence</a> createFlattened(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> first, 352 <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> second)</pre> 353<div class="block">Method that will construct a parser (possibly a sequence) that 354 contains all given sub-parsers. 355 All parsers given are checked to see if they are sequences: and 356 if so, they will be "flattened", that is, contained parsers are 357 directly added in a new sequence instead of adding sequences 358 within sequences. This is done to minimize delegation depth, 359 ideally only having just a single level of delegation.</div> 360</li> 361</ul> 362<a name="addFlattenedActiveParsers(java.util.List)"> 363<!-- --> 364</a> 365<ul class="blockList"> 366<li class="blockList"> 367<h4>addFlattenedActiveParsers</h4> 368<pre>protected void addFlattenedActiveParsers(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a>> result)</pre> 369</li> 370</ul> 371<a name="close()"> 372<!-- --> 373</a> 374<ul class="blockList"> 375<li class="blockList"> 376<h4>close</h4> 377<pre>public void close() 378 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> 379<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#close()">JsonParser</a></code></strong></div> 380<div class="block">Closes the parser so that no further iteration or data access 381 can be made; will also close the underlying input source 382 if parser either <b>owns</b> the input source, or feature 383 <a href="../../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled. 384 Whether parser owns the input source depends on factory 385 method that was used to construct instance (so check 386 <a href="../../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> for details, 387 but the general 388 idea is that if caller passes in closable resource (such 389 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 390 own the source; but if it passes a reference (such as 391 <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 392 stream or reader it does own them.</div> 393<dl> 394<dt><strong>Specified by:</strong></dt> 395<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> 396<dt><strong>Specified by:</strong></dt> 397<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> 398<dt><strong>Overrides:</strong></dt> 399<dd><code><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#close()">close</a></code> in class <code><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">JsonParserDelegate</a></code></dd> 400<dt><span class="strong">Throws:</span></dt> 401<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> 402</li> 403</ul> 404<a name="nextToken()"> 405<!-- --> 406</a> 407<ul class="blockList"> 408<li class="blockList"> 409<h4>nextToken</h4> 410<pre>public <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> nextToken() 411 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>, 412 <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> 413<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonParser.html#nextToken()">JsonParser</a></code></strong></div> 414<div class="block">Main iteration method, which will advance stream enough 415 to determine type of the next token, if any. If none 416 remaining (stream has no content other than possible 417 white space before ending), null will be returned.</div> 418<dl> 419<dt><strong>Overrides:</strong></dt> 420<dd><code><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html#nextToken()">nextToken</a></code> in class <code><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util">JsonParserDelegate</a></code></dd> 421<dt><span class="strong">Returns:</span></dt><dd>Next token from the stream, if any found, or null 422 to indicate end-of-input</dd> 423<dt><span class="strong">Throws:</span></dt> 424<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> 425<dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> 426</li> 427</ul> 428<a name="containedParsersCount()"> 429<!-- --> 430</a> 431<ul class="blockList"> 432<li class="blockList"> 433<h4>containedParsersCount</h4> 434<pre>public int containedParsersCount()</pre> 435<div class="block">Method that is most useful for debugging or testing; 436 returns actual number of underlying parsers sequence 437 was constructed with (nor just ones remaining active)</div> 438</li> 439</ul> 440<a name="switchToNext()"> 441<!-- --> 442</a> 443<ul class="blockListLast"> 444<li class="blockList"> 445<h4>switchToNext</h4> 446<pre>protected boolean switchToNext()</pre> 447<div class="block">Method that will switch active parser from the current one 448 to next parser in sequence, if there is another parser left, 449 making this the new delegate. Old delegate is returned if 450 switch succeeds.</div> 451<dl><dt><span class="strong">Returns:</span></dt><dd>True if switch succeeded; false otherwise</dd></dl> 452</li> 453</ul> 454</li> 455</ul> 456</li> 457</ul> 458</div> 459</div> 460<!-- ========= END OF CLASS DATA ========= --> 461<!-- ======= START OF BOTTOM NAVBAR ====== --> 462<div class="bottomNav"><a name="navbar_bottom"> 463<!-- --> 464</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 465<!-- --> 466</a> 467<ul class="navList" title="Navigation"> 468<li><a href="../../../../overview-summary.html">Overview</a></li> 469<li><a href="package-summary.html">Package</a></li> 470<li class="navBarCell1Rev">Class</li> 471<li><a href="class-use/JsonParserSequence.html">Use</a></li> 472<li><a href="package-tree.html">Tree</a></li> 473<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 474<li><a href="../../../../index-all.html">Index</a></li> 475<li><a href="../../../../help-doc.html">Help</a></li> 476</ul> 477</div> 478<div class="subNav"> 479<ul class="navList"> 480<li><a href="../../../../org/codehaus/jackson/util/JsonParserDelegate.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 481<li><a href="../../../../org/codehaus/jackson/util/MinimalPrettyPrinter.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> 482</ul> 483<ul class="navList"> 484<li><a href="../../../../index.html?org/codehaus/jackson/util/JsonParserSequence.html" target="_top">Frames</a></li> 485<li><a href="JsonParserSequence.html" target="_top">No Frames</a></li> 486</ul> 487<ul class="navList" id="allclasses_navbar_bottom"> 488<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 489</ul> 490<div> 491<script type="text/javascript"><!-- 492 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 493 if(window==top) { 494 allClassesLink.style.display = "block"; 495 } 496 else { 497 allClassesLink.style.display = "none"; 498 } 499 //--> 500</script> 501</div> 502<div> 503<ul class="subNavList"> 504<li>Summary: </li> 505<li><a href="#nested_classes_inherited_from_class_org.codehaus.jackson.JsonParser">Nested</a> | </li> 506<li><a href="#field_summary">Field</a> | </li> 507<li><a href="#constructor_summary">Constr</a> | </li> 508<li><a href="#method_summary">Method</a></li> 509</ul> 510<ul class="subNavList"> 511<li>Detail: </li> 512<li><a href="#field_detail">Field</a> | </li> 513<li><a href="#constructor_detail">Constr</a> | </li> 514<li><a href="#method_detail">Method</a></li> 515</ul> 516</div> 517<a name="skip-navbar_bottom"> 518<!-- --> 519</a></div> 520<!-- ======== END OF BOTTOM NAVBAR ======= --> 521</body> 522</html> 523