1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:20 PDT 2013 --> 6<title>JsonLocation (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="JsonLocation (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/JsonLocation.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../index-all.html">Index</a></li> 34<li><a href="../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../index.html?org/codehaus/jackson/JsonLocation.html" target="_top">Frames</a></li> 44<li><a href="JsonLocation.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Nested | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson</div> 83<h2 title="Class JsonLocation" class="title">Class JsonLocation</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li>org.codehaus.jackson.JsonLocation</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<dl> 98<dt>All Implemented Interfaces:</dt> 99<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 100</dl> 101<hr> 102<br> 103<pre>public class <span class="strong">JsonLocation</span> 104extends <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> 105implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 106<div class="block">Object that encapsulates Location information used for reporting 107 parsing (or potentially generation) errors, as well as current location 108 within input streams.</div> 109<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#org.codehaus.jackson.JsonLocation">Serialized Form</a></dd></dl> 110</li> 111</ul> 112</div> 113<div class="summary"> 114<ul class="blockList"> 115<li class="blockList"> 116<!-- =========== FIELD SUMMARY =========== --> 117<ul class="blockList"> 118<li class="blockList"><a name="field_summary"> 119<!-- --> 120</a> 121<h3>Field Summary</h3> 122<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 123<caption><span>Fields</span><span class="tabEnd"> </span></caption> 124<tr> 125<th class="colFirst" scope="col">Modifier and Type</th> 126<th class="colLast" scope="col">Field and Description</th> 127</tr> 128<tr class="altColor"> 129<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a></code></td> 130<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#NA">NA</a></strong></code> 131<div class="block">Shared immutable "N/A location" that can be returned to indicate 132 that no location information is available</div> 133</td> 134</tr> 135</table> 136</li> 137</ul> 138<!-- ======== CONSTRUCTOR SUMMARY ======== --> 139<ul class="blockList"> 140<li class="blockList"><a name="constructor_summary"> 141<!-- --> 142</a> 143<h3>Constructor Summary</h3> 144<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 145<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 146<tr> 147<th class="colOne" scope="col">Constructor and Description</th> 148</tr> 149<tr class="altColor"> 150<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#JsonLocation(java.lang.Object, long, int, int)">JsonLocation</a></strong>(<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> srcRef, 151 long totalChars, 152 int lineNr, 153 int colNr)</code> </td> 154</tr> 155<tr class="rowColor"> 156<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#JsonLocation(java.lang.Object, long, long, int, int)">JsonLocation</a></strong>(<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> sourceRef, 157 long totalBytes, 158 long totalChars, 159 int lineNr, 160 int columnNr)</code> </td> 161</tr> 162</table> 163</li> 164</ul> 165<!-- ========== METHOD SUMMARY =========== --> 166<ul class="blockList"> 167<li class="blockList"><a name="method_summary"> 168<!-- --> 169</a> 170<h3>Method Summary</h3> 171<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 172<caption><span>Methods</span><span class="tabEnd"> </span></caption> 173<tr> 174<th class="colFirst" scope="col">Modifier and Type</th> 175<th class="colLast" scope="col">Method and Description</th> 176</tr> 177<tr class="altColor"> 178<td class="colFirst"><code>boolean</code></td> 179<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#equals(java.lang.Object)">equals</a></strong>(<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> other)</code> </td> 180</tr> 181<tr class="rowColor"> 182<td class="colFirst"><code>long</code></td> 183<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#getByteOffset()">getByteOffset</a></strong>()</code> </td> 184</tr> 185<tr class="altColor"> 186<td class="colFirst"><code>long</code></td> 187<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#getCharOffset()">getCharOffset</a></strong>()</code> </td> 188</tr> 189<tr class="rowColor"> 190<td class="colFirst"><code>int</code></td> 191<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#getColumnNr()">getColumnNr</a></strong>()</code> </td> 192</tr> 193<tr class="altColor"> 194<td class="colFirst"><code>int</code></td> 195<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#getLineNr()">getLineNr</a></strong>()</code> </td> 196</tr> 197<tr class="rowColor"> 198<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> 199<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#getSourceRef()">getSourceRef</a></strong>()</code> 200<div class="block">Reference to the original resource being read, if one available.</div> 201</td> 202</tr> 203<tr class="altColor"> 204<td class="colFirst"><code>int</code></td> 205<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#hashCode()">hashCode</a></strong>()</code> </td> 206</tr> 207<tr class="rowColor"> 208<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> 209<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonLocation.html#toString()">toString</a></strong>()</code> </td> 210</tr> 211</table> 212<ul class="blockList"> 213<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 214<!-- --> 215</a> 216<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> 217<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#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#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 218</ul> 219</li> 220</ul> 221</li> 222</ul> 223</div> 224<div class="details"> 225<ul class="blockList"> 226<li class="blockList"> 227<!-- ============ FIELD DETAIL =========== --> 228<ul class="blockList"> 229<li class="blockList"><a name="field_detail"> 230<!-- --> 231</a> 232<h3>Field Detail</h3> 233<a name="NA"> 234<!-- --> 235</a> 236<ul class="blockListLast"> 237<li class="blockList"> 238<h4>NA</h4> 239<pre>public static final <a href="../../../org/codehaus/jackson/JsonLocation.html" title="class in org.codehaus.jackson">JsonLocation</a> NA</pre> 240<div class="block">Shared immutable "N/A location" that can be returned to indicate 241 that no location information is available</div> 242<dl><dt><span class="strong">Since:</span></dt> 243 <dd>1.3</dd></dl> 244</li> 245</ul> 246</li> 247</ul> 248<!-- ========= CONSTRUCTOR DETAIL ======== --> 249<ul class="blockList"> 250<li class="blockList"><a name="constructor_detail"> 251<!-- --> 252</a> 253<h3>Constructor Detail</h3> 254<a name="JsonLocation(java.lang.Object, long, int, int)"> 255<!-- --> 256</a> 257<ul class="blockList"> 258<li class="blockList"> 259<h4>JsonLocation</h4> 260<pre>public JsonLocation(<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> srcRef, 261 long totalChars, 262 int lineNr, 263 int colNr)</pre> 264</li> 265</ul> 266<a name="JsonLocation(java.lang.Object, long, long, int, int)"> 267<!-- --> 268</a> 269<ul class="blockListLast"> 270<li class="blockList"> 271<h4>JsonLocation</h4> 272<pre>public JsonLocation(<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> sourceRef, 273 long totalBytes, 274 long totalChars, 275 int lineNr, 276 int columnNr)</pre> 277</li> 278</ul> 279</li> 280</ul> 281<!-- ============ METHOD DETAIL ========== --> 282<ul class="blockList"> 283<li class="blockList"><a name="method_detail"> 284<!-- --> 285</a> 286<h3>Method Detail</h3> 287<a name="getSourceRef()"> 288<!-- --> 289</a> 290<ul class="blockList"> 291<li class="blockList"> 292<h4>getSourceRef</h4> 293<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> getSourceRef()</pre> 294<div class="block">Reference to the original resource being read, if one available. 295 For example, when a parser has been constructed by passing 296 a <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> instance, this method would return 297 that File. Will return null if no such reference is available, 298 for example when <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> was used to 299 construct the parser instance.</div> 300</li> 301</ul> 302<a name="getLineNr()"> 303<!-- --> 304</a> 305<ul class="blockList"> 306<li class="blockList"> 307<h4>getLineNr</h4> 308<pre>public int getLineNr()</pre> 309<dl><dt><span class="strong">Returns:</span></dt><dd>Line number of the location (1-based)</dd></dl> 310</li> 311</ul> 312<a name="getColumnNr()"> 313<!-- --> 314</a> 315<ul class="blockList"> 316<li class="blockList"> 317<h4>getColumnNr</h4> 318<pre>public int getColumnNr()</pre> 319<dl><dt><span class="strong">Returns:</span></dt><dd>Column number of the location (1-based)</dd></dl> 320</li> 321</ul> 322<a name="getCharOffset()"> 323<!-- --> 324</a> 325<ul class="blockList"> 326<li class="blockList"> 327<h4>getCharOffset</h4> 328<pre>public long getCharOffset()</pre> 329<dl><dt><span class="strong">Returns:</span></dt><dd>Character offset within underlying stream, reader or writer, 330 if available; -1 if not.</dd></dl> 331</li> 332</ul> 333<a name="getByteOffset()"> 334<!-- --> 335</a> 336<ul class="blockList"> 337<li class="blockList"> 338<h4>getByteOffset</h4> 339<pre>public long getByteOffset()</pre> 340<dl><dt><span class="strong">Returns:</span></dt><dd>Byte offset within underlying stream, reader or writer, 341 if available; -1 if not.</dd></dl> 342</li> 343</ul> 344<a name="toString()"> 345<!-- --> 346</a> 347<ul class="blockList"> 348<li class="blockList"> 349<h4>toString</h4> 350<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> toString()</pre> 351<dl> 352<dt><strong>Overrides:</strong></dt> 353<dd><code><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></code> in class <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></dd> 354</dl> 355</li> 356</ul> 357<a name="hashCode()"> 358<!-- --> 359</a> 360<ul class="blockList"> 361<li class="blockList"> 362<h4>hashCode</h4> 363<pre>public int hashCode()</pre> 364<dl> 365<dt><strong>Overrides:</strong></dt> 366<dd><code><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></code> in class <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></dd> 367</dl> 368</li> 369</ul> 370<a name="equals(java.lang.Object)"> 371<!-- --> 372</a> 373<ul class="blockListLast"> 374<li class="blockList"> 375<h4>equals</h4> 376<pre>public boolean equals(<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> other)</pre> 377<dl> 378<dt><strong>Overrides:</strong></dt> 379<dd><code><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></code> in class <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></dd> 380</dl> 381</li> 382</ul> 383</li> 384</ul> 385</li> 386</ul> 387</div> 388</div> 389<!-- ========= END OF CLASS DATA ========= --> 390<!-- ======= START OF BOTTOM NAVBAR ====== --> 391<div class="bottomNav"><a name="navbar_bottom"> 392<!-- --> 393</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 394<!-- --> 395</a> 396<ul class="navList" title="Navigation"> 397<li><a href="../../../overview-summary.html">Overview</a></li> 398<li><a href="package-summary.html">Package</a></li> 399<li class="navBarCell1Rev">Class</li> 400<li><a href="class-use/JsonLocation.html">Use</a></li> 401<li><a href="package-tree.html">Tree</a></li> 402<li><a href="../../../deprecated-list.html">Deprecated</a></li> 403<li><a href="../../../index-all.html">Index</a></li> 404<li><a href="../../../help-doc.html">Help</a></li> 405</ul> 406</div> 407<div class="subNav"> 408<ul class="navList"> 409<li><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 410<li><a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 411</ul> 412<ul class="navList"> 413<li><a href="../../../index.html?org/codehaus/jackson/JsonLocation.html" target="_top">Frames</a></li> 414<li><a href="JsonLocation.html" target="_top">No Frames</a></li> 415</ul> 416<ul class="navList" id="allclasses_navbar_bottom"> 417<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 418</ul> 419<div> 420<script type="text/javascript"><!-- 421 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 422 if(window==top) { 423 allClassesLink.style.display = "block"; 424 } 425 else { 426 allClassesLink.style.display = "none"; 427 } 428 //--> 429</script> 430</div> 431<div> 432<ul class="subNavList"> 433<li>Summary: </li> 434<li>Nested | </li> 435<li><a href="#field_summary">Field</a> | </li> 436<li><a href="#constructor_summary">Constr</a> | </li> 437<li><a href="#method_summary">Method</a></li> 438</ul> 439<ul class="subNavList"> 440<li>Detail: </li> 441<li><a href="#field_detail">Field</a> | </li> 442<li><a href="#constructor_detail">Constr</a> | </li> 443<li><a href="#method_detail">Method</a></li> 444</ul> 445</div> 446<a name="skip-navbar_bottom"> 447<!-- --> 448</a></div> 449<!-- ======== END OF BOTTOM NAVBAR ======= --> 450</body> 451</html> 452