• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.Segment (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.Segment (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.Segment.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.Parser.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/util/VersionUtil.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.Segment.html" target="_top">Frames</a></li>
44<li><a href="TokenBuffer.Segment.html" target="_top">No Frames</a></li>
45</ul>
46<ul class="navList" id="allclasses_navbar_top">
47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
48</ul>
49<div>
50<script type="text/javascript"><!--
51  allClassesLink = document.getElementById("allclasses_navbar_top");
52  if(window==top) {
53    allClassesLink.style.display = "block";
54  }
55  else {
56    allClassesLink.style.display = "none";
57  }
58  //-->
59</script>
60</div>
61<div>
62<ul class="subNavList">
63<li>Summary:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73<li><a href="#method_detail">Method</a></li>
74</ul>
75</div>
76<a name="skip-navbar_top">
77<!--   -->
78</a></div>
79<!-- ========= END OF TOP NAVBAR ========= -->
80<!-- ======== START OF CLASS DATA ======== -->
81<div class="header">
82<div class="subTitle">org.codehaus.jackson.util</div>
83<h2 title="Class TokenBuffer.Segment" class="title">Class TokenBuffer.Segment</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.util.TokenBuffer.Segment</li>
91</ul>
92</li>
93</ul>
94<div class="description">
95<ul class="blockList">
96<li class="blockList">
97<dl>
98<dt>Enclosing class:</dt>
99<dd><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util">TokenBuffer</a></dd>
100</dl>
101<hr>
102<br>
103<pre>protected static final class <span class="strong">TokenBuffer.Segment</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></pre>
105<div class="block">Individual segment of TokenBuffer that can store up to 16 tokens
106 (limited by 4 bits per token type marker requirement).
107 Current implementation uses fixed length array; could alternatively
108 use 16 distinct fields and switch statement (slightly more efficient
109 storage, slightly slower access)</div>
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">&nbsp;</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>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td>
130<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#_next">_next</a></strong></code>&nbsp;</td>
131</tr>
132<tr class="rowColor">
133<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>
134<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#_tokens">_tokens</a></strong></code>&nbsp;</td>
135</tr>
136<tr class="altColor">
137<td class="colFirst"><code>protected long</code></td>
138<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#_tokenTypes">_tokenTypes</a></strong></code>
139<div class="block">Bit field used to store types of buffered tokens; 4 bits per token.</div>
140</td>
141</tr>
142<tr class="rowColor">
143<td class="colFirst"><code>static int</code></td>
144<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#TOKENS_PER_SEGMENT">TOKENS_PER_SEGMENT</a></strong></code>&nbsp;</td>
145</tr>
146</table>
147</li>
148</ul>
149<!-- ======== CONSTRUCTOR SUMMARY ======== -->
150<ul class="blockList">
151<li class="blockList"><a name="constructor_summary">
152<!--   -->
153</a>
154<h3>Constructor Summary</h3>
155<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
156<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
157<tr>
158<th class="colOne" scope="col">Constructor and Description</th>
159</tr>
160<tr class="altColor">
161<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#TokenBuffer.Segment()">TokenBuffer.Segment</a></strong>()</code>&nbsp;</td>
162</tr>
163</table>
164</li>
165</ul>
166<!-- ========== METHOD SUMMARY =========== -->
167<ul class="blockList">
168<li class="blockList"><a name="method_summary">
169<!--   -->
170</a>
171<h3>Method Summary</h3>
172<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
173<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
174<tr>
175<th class="colFirst" scope="col">Modifier and Type</th>
176<th class="colLast" scope="col">Method and Description</th>
177</tr>
178<tr class="altColor">
179<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td>
180<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#append(int, org.codehaus.jackson.JsonToken)">append</a></strong>(int&nbsp;index,
181      <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType)</code>&nbsp;</td>
182</tr>
183<tr class="rowColor">
184<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td>
185<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#append(int, org.codehaus.jackson.JsonToken, java.lang.Object)">append</a></strong>(int&nbsp;index,
186      <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType,
187      <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>&nbsp;value)</code>&nbsp;</td>
188</tr>
189<tr class="altColor">
190<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>
191<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#get(int)">get</a></strong>(int&nbsp;index)</code>&nbsp;</td>
192</tr>
193<tr class="rowColor">
194<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td>
195<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#next()">next</a></strong>()</code>&nbsp;</td>
196</tr>
197<tr class="altColor">
198<td class="colFirst"><code>void</code></td>
199<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#set(int, org.codehaus.jackson.JsonToken)">set</a></strong>(int&nbsp;index,
200   <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType)</code>&nbsp;</td>
201</tr>
202<tr class="rowColor">
203<td class="colFirst"><code>void</code></td>
204<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#set(int, org.codehaus.jackson.JsonToken, java.lang.Object)">set</a></strong>(int&nbsp;index,
205   <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType,
206   <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>&nbsp;value)</code>&nbsp;</td>
207</tr>
208<tr class="altColor">
209<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td>
210<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html#type(int)">type</a></strong>(int&nbsp;index)</code>&nbsp;</td>
211</tr>
212</table>
213<ul class="blockList">
214<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
215<!--   -->
216</a>
217<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
218<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>
219</ul>
220</li>
221</ul>
222</li>
223</ul>
224</div>
225<div class="details">
226<ul class="blockList">
227<li class="blockList">
228<!-- ============ FIELD DETAIL =========== -->
229<ul class="blockList">
230<li class="blockList"><a name="field_detail">
231<!--   -->
232</a>
233<h3>Field Detail</h3>
234<a name="TOKENS_PER_SEGMENT">
235<!--   -->
236</a>
237<ul class="blockList">
238<li class="blockList">
239<h4>TOKENS_PER_SEGMENT</h4>
240<pre>public static final&nbsp;int TOKENS_PER_SEGMENT</pre>
241<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.codehaus.jackson.util.TokenBuffer.Segment.TOKENS_PER_SEGMENT">Constant Field Values</a></dd></dl>
242</li>
243</ul>
244<a name="_next">
245<!--   -->
246</a>
247<ul class="blockList">
248<li class="blockList">
249<h4>_next</h4>
250<pre>protected&nbsp;<a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> _next</pre>
251</li>
252</ul>
253<a name="_tokenTypes">
254<!--   -->
255</a>
256<ul class="blockList">
257<li class="blockList">
258<h4>_tokenTypes</h4>
259<pre>protected&nbsp;long _tokenTypes</pre>
260<div class="block">Bit field used to store types of buffered tokens; 4 bits per token.
261 Value 0 is reserved for "not in use"</div>
262</li>
263</ul>
264<a name="_tokens">
265<!--   -->
266</a>
267<ul class="blockListLast">
268<li class="blockList">
269<h4>_tokens</h4>
270<pre>protected final&nbsp;<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>[] _tokens</pre>
271</li>
272</ul>
273</li>
274</ul>
275<!-- ========= CONSTRUCTOR DETAIL ======== -->
276<ul class="blockList">
277<li class="blockList"><a name="constructor_detail">
278<!--   -->
279</a>
280<h3>Constructor Detail</h3>
281<a name="TokenBuffer.Segment()">
282<!--   -->
283</a>
284<ul class="blockListLast">
285<li class="blockList">
286<h4>TokenBuffer.Segment</h4>
287<pre>public&nbsp;TokenBuffer.Segment()</pre>
288</li>
289</ul>
290</li>
291</ul>
292<!-- ============ METHOD DETAIL ========== -->
293<ul class="blockList">
294<li class="blockList"><a name="method_detail">
295<!--   -->
296</a>
297<h3>Method Detail</h3>
298<a name="type(int)">
299<!--   -->
300</a>
301<ul class="blockList">
302<li class="blockList">
303<h4>type</h4>
304<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;type(int&nbsp;index)</pre>
305</li>
306</ul>
307<a name="get(int)">
308<!--   -->
309</a>
310<ul class="blockList">
311<li class="blockList">
312<h4>get</h4>
313<pre>public&nbsp;<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>&nbsp;get(int&nbsp;index)</pre>
314</li>
315</ul>
316<a name="next()">
317<!--   -->
318</a>
319<ul class="blockList">
320<li class="blockList">
321<h4>next</h4>
322<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a>&nbsp;next()</pre>
323</li>
324</ul>
325<a name="append(int, org.codehaus.jackson.JsonToken)">
326<!--   -->
327</a>
328<ul class="blockList">
329<li class="blockList">
330<h4>append</h4>
331<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a>&nbsp;append(int&nbsp;index,
332                         <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType)</pre>
333</li>
334</ul>
335<a name="append(int, org.codehaus.jackson.JsonToken, java.lang.Object)">
336<!--   -->
337</a>
338<ul class="blockList">
339<li class="blockList">
340<h4>append</h4>
341<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a>&nbsp;append(int&nbsp;index,
342                         <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType,
343                         <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>&nbsp;value)</pre>
344</li>
345</ul>
346<a name="set(int, org.codehaus.jackson.JsonToken)">
347<!--   -->
348</a>
349<ul class="blockList">
350<li class="blockList">
351<h4>set</h4>
352<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
353       <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType)</pre>
354</li>
355</ul>
356<a name="set(int, org.codehaus.jackson.JsonToken, java.lang.Object)">
357<!--   -->
358</a>
359<ul class="blockListLast">
360<li class="blockList">
361<h4>set</h4>
362<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
363       <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;tokenType,
364       <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>&nbsp;value)</pre>
365</li>
366</ul>
367</li>
368</ul>
369</li>
370</ul>
371</div>
372</div>
373<!-- ========= END OF CLASS DATA ========= -->
374<!-- ======= START OF BOTTOM NAVBAR ====== -->
375<div class="bottomNav"><a name="navbar_bottom">
376<!--   -->
377</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
378<!--   -->
379</a>
380<ul class="navList" title="Navigation">
381<li><a href="../../../../overview-summary.html">Overview</a></li>
382<li><a href="package-summary.html">Package</a></li>
383<li class="navBarCell1Rev">Class</li>
384<li><a href="class-use/TokenBuffer.Segment.html">Use</a></li>
385<li><a href="package-tree.html">Tree</a></li>
386<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
387<li><a href="../../../../index-all.html">Index</a></li>
388<li><a href="../../../../help-doc.html">Help</a></li>
389</ul>
390</div>
391<div class="subNav">
392<ul class="navList">
393<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li>
394<li><a href="../../../../org/codehaus/jackson/util/VersionUtil.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li>
395</ul>
396<ul class="navList">
397<li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.Segment.html" target="_top">Frames</a></li>
398<li><a href="TokenBuffer.Segment.html" target="_top">No Frames</a></li>
399</ul>
400<ul class="navList" id="allclasses_navbar_bottom">
401<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
402</ul>
403<div>
404<script type="text/javascript"><!--
405  allClassesLink = document.getElementById("allclasses_navbar_bottom");
406  if(window==top) {
407    allClassesLink.style.display = "block";
408  }
409  else {
410    allClassesLink.style.display = "none";
411  }
412  //-->
413</script>
414</div>
415<div>
416<ul class="subNavList">
417<li>Summary:&nbsp;</li>
418<li>Nested&nbsp;|&nbsp;</li>
419<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
420<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
421<li><a href="#method_summary">Method</a></li>
422</ul>
423<ul class="subNavList">
424<li>Detail:&nbsp;</li>
425<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
426<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
427<li><a href="#method_detail">Method</a></li>
428</ul>
429</div>
430<a name="skip-navbar_bottom">
431<!--   -->
432</a></div>
433<!-- ======== END OF BOTTOM NAVBAR ======= -->
434</body>
435</html>
436