• 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:24 PDT 2013 -->
6<title>UTF32Reader (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="UTF32Reader (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/UTF32Reader.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/io/SerializedString.html" title="class in org.codehaus.jackson.io"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/io/UTF8Writer.html" title="class in org.codehaus.jackson.io"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?org/codehaus/jackson/io/UTF32Reader.html" target="_top">Frames</a></li>
44<li><a href="UTF32Reader.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.io</div>
83<h2 title="Class UTF32Reader" class="title">Class UTF32Reader</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="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">java.io.Reader</a></li>
91<li>
92<ul class="inheritance">
93<li>org.codehaus.jackson.io.UTF32Reader</li>
94</ul>
95</li>
96</ul>
97</li>
98</ul>
99<div class="description">
100<ul class="blockList">
101<li class="blockList">
102<dl>
103<dt>All Implemented Interfaces:</dt>
104<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="http://docs.oracle.com/javase/6/docs/api/java/lang/Readable.html?is-external=true" title="class or interface in java.lang">Readable</a></dd>
105</dl>
106<hr>
107<br>
108<pre>public class <span class="strong">UTF32Reader</span>
109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></pre>
110<div class="block">Since JDK does not come with UTF-32/UCS-4, let's implement a simple
111 decoder to use.</div>
112</li>
113</ul>
114</div>
115<div class="summary">
116<ul class="blockList">
117<li class="blockList">
118<!-- =========== FIELD SUMMARY =========== -->
119<ul class="blockList">
120<li class="blockList"><a name="field_summary">
121<!--   -->
122</a>
123<h3>Field Summary</h3>
124<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
125<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
126<tr>
127<th class="colFirst" scope="col">Modifier and Type</th>
128<th class="colLast" scope="col">Field and Description</th>
129</tr>
130<tr class="altColor">
131<td class="colFirst"><code>protected boolean</code></td>
132<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_bigEndian">_bigEndian</a></strong></code>&nbsp;</td>
133</tr>
134<tr class="rowColor">
135<td class="colFirst"><code>protected byte[]</code></td>
136<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_buffer">_buffer</a></strong></code>&nbsp;</td>
137</tr>
138<tr class="altColor">
139<td class="colFirst"><code>protected int</code></td>
140<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_byteCount">_byteCount</a></strong></code>
141<div class="block">Total read byte count; used for error reporting purposes</div>
142</td>
143</tr>
144<tr class="rowColor">
145<td class="colFirst"><code>protected int</code></td>
146<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_charCount">_charCount</a></strong></code>
147<div class="block">Total read character count; used for error reporting purposes</div>
148</td>
149</tr>
150<tr class="altColor">
151<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a></code></td>
152<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_context">_context</a></strong></code>&nbsp;</td>
153</tr>
154<tr class="rowColor">
155<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
156<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_in">_in</a></strong></code>&nbsp;</td>
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/io/UTF32Reader.html#_length">_length</a></strong></code>&nbsp;</td>
161</tr>
162<tr class="rowColor">
163<td class="colFirst"><code>protected boolean</code></td>
164<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_managedBuffers">_managedBuffers</a></strong></code>&nbsp;</td>
165</tr>
166<tr class="altColor">
167<td class="colFirst"><code>protected int</code></td>
168<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_ptr">_ptr</a></strong></code>&nbsp;</td>
169</tr>
170<tr class="rowColor">
171<td class="colFirst"><code>protected char</code></td>
172<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_surrogate">_surrogate</a></strong></code>
173<div class="block">Although input is fine with full Unicode set, Java still uses
174 16-bit chars, so we may have to split high-order chars into
175 surrogate pairs.</div>
176</td>
177</tr>
178<tr class="altColor">
179<td class="colFirst"><code>protected char[]</code></td>
180<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#_tmpBuf">_tmpBuf</a></strong></code>&nbsp;</td>
181</tr>
182<tr class="rowColor">
183<td class="colFirst"><code>protected static int</code></td>
184<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#LAST_VALID_UNICODE_CHAR">LAST_VALID_UNICODE_CHAR</a></strong></code>
185<div class="block">JSON actually limits available Unicode range in the high end
186 to the same as xml (to basically limit UTF-8 max byte sequence
187 length to 4)</div>
188</td>
189</tr>
190<tr class="altColor">
191<td class="colFirst"><code>protected static char</code></td>
192<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#NULL_BYTE">NULL_BYTE</a></strong></code>&nbsp;</td>
193</tr>
194<tr class="rowColor">
195<td class="colFirst"><code>protected static char</code></td>
196<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#NULL_CHAR">NULL_CHAR</a></strong></code>&nbsp;</td>
197</tr>
198</table>
199<ul class="blockList">
200<li class="blockList"><a name="fields_inherited_from_class_java.io.Reader">
201<!--   -->
202</a>
203<h3>Fields inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></h3>
204<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#lock" title="class or interface in java.io">lock</a></code></li>
205</ul>
206</li>
207</ul>
208<!-- ======== CONSTRUCTOR SUMMARY ======== -->
209<ul class="blockList">
210<li class="blockList"><a name="constructor_summary">
211<!--   -->
212</a>
213<h3>Constructor Summary</h3>
214<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
215<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
216<tr>
217<th class="colOne" scope="col">Constructor and Description</th>
218</tr>
219<tr class="altColor">
220<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#UTF32Reader(org.codehaus.jackson.io.IOContext, java.io.InputStream, byte[], int, int, boolean)">UTF32Reader</a></strong>(<a href="../../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a>&nbsp;ctxt,
221           <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;in,
222           byte[]&nbsp;buf,
223           int&nbsp;ptr,
224           int&nbsp;len,
225           boolean&nbsp;isBigEndian)</code>&nbsp;</td>
226</tr>
227</table>
228</li>
229</ul>
230<!-- ========== METHOD SUMMARY =========== -->
231<ul class="blockList">
232<li class="blockList"><a name="method_summary">
233<!--   -->
234</a>
235<h3>Method Summary</h3>
236<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
237<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
238<tr>
239<th class="colFirst" scope="col">Modifier and Type</th>
240<th class="colLast" scope="col">Method and Description</th>
241</tr>
242<tr class="altColor">
243<td class="colFirst"><code>void</code></td>
244<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#close()">close</a></strong>()</code>&nbsp;</td>
245</tr>
246<tr class="rowColor">
247<td class="colFirst"><code>void</code></td>
248<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#freeBuffers()">freeBuffers</a></strong>()</code>
249<div class="block">This method should be called along with (or instead of) normal
250 close.</div>
251</td>
252</tr>
253<tr class="altColor">
254<td class="colFirst"><code>int</code></td>
255<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#read()">read</a></strong>()</code>
256<div class="block">Although this method is implemented by the base class, AND it should
257 never be called by main code, let's still implement it bit more
258 efficiently just in case</div>
259</td>
260</tr>
261<tr class="rowColor">
262<td class="colFirst"><code>int</code></td>
263<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#read(char[], int, int)">read</a></strong>(char[]&nbsp;cbuf,
264    int&nbsp;start,
265    int&nbsp;len)</code>&nbsp;</td>
266</tr>
267<tr class="altColor">
268<td class="colFirst"><code>protected void</code></td>
269<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#reportBounds(char[], int, int)">reportBounds</a></strong>(char[]&nbsp;cbuf,
270            int&nbsp;start,
271            int&nbsp;len)</code>&nbsp;</td>
272</tr>
273<tr class="rowColor">
274<td class="colFirst"><code>protected void</code></td>
275<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/UTF32Reader.html#reportStrangeStream()">reportStrangeStream</a></strong>()</code>&nbsp;</td>
276</tr>
277</table>
278<ul class="blockList">
279<li class="blockList"><a name="methods_inherited_from_class_java.io.Reader">
280<!--   -->
281</a>
282<h3>Methods inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></h3>
283<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#mark(int)" title="class or interface in java.io">mark</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#markSupported()" title="class or interface in java.io">markSupported</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#read(char[])" title="class or interface in java.io">read</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#read(java.nio.CharBuffer)" title="class or interface in java.io">read</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#ready()" title="class or interface in java.io">ready</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#reset()" title="class or interface in java.io">reset</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#skip(long)" title="class or interface in java.io">skip</a></code></li>
284</ul>
285<ul class="blockList">
286<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
287<!--   -->
288</a>
289<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>
290<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>
291</ul>
292</li>
293</ul>
294</li>
295</ul>
296</div>
297<div class="details">
298<ul class="blockList">
299<li class="blockList">
300<!-- ============ FIELD DETAIL =========== -->
301<ul class="blockList">
302<li class="blockList"><a name="field_detail">
303<!--   -->
304</a>
305<h3>Field Detail</h3>
306<a name="_bigEndian">
307<!--   -->
308</a>
309<ul class="blockList">
310<li class="blockList">
311<h4>_bigEndian</h4>
312<pre>protected final&nbsp;boolean _bigEndian</pre>
313</li>
314</ul>
315<a name="_surrogate">
316<!--   -->
317</a>
318<ul class="blockList">
319<li class="blockList">
320<h4>_surrogate</h4>
321<pre>protected&nbsp;char _surrogate</pre>
322<div class="block">Although input is fine with full Unicode set, Java still uses
323 16-bit chars, so we may have to split high-order chars into
324 surrogate pairs.</div>
325</li>
326</ul>
327<a name="_charCount">
328<!--   -->
329</a>
330<ul class="blockList">
331<li class="blockList">
332<h4>_charCount</h4>
333<pre>protected&nbsp;int _charCount</pre>
334<div class="block">Total read character count; used for error reporting purposes</div>
335</li>
336</ul>
337<a name="_byteCount">
338<!--   -->
339</a>
340<ul class="blockList">
341<li class="blockList">
342<h4>_byteCount</h4>
343<pre>protected&nbsp;int _byteCount</pre>
344<div class="block">Total read byte count; used for error reporting purposes</div>
345</li>
346</ul>
347<a name="_managedBuffers">
348<!--   -->
349</a>
350<ul class="blockList">
351<li class="blockList">
352<h4>_managedBuffers</h4>
353<pre>protected final&nbsp;boolean _managedBuffers</pre>
354</li>
355</ul>
356<a name="LAST_VALID_UNICODE_CHAR">
357<!--   -->
358</a>
359<ul class="blockList">
360<li class="blockList">
361<h4>LAST_VALID_UNICODE_CHAR</h4>
362<pre>protected static final&nbsp;int LAST_VALID_UNICODE_CHAR</pre>
363<div class="block">JSON actually limits available Unicode range in the high end
364 to the same as xml (to basically limit UTF-8 max byte sequence
365 length to 4)</div>
366<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.codehaus.jackson.io.UTF32Reader.LAST_VALID_UNICODE_CHAR">Constant Field Values</a></dd></dl>
367</li>
368</ul>
369<a name="NULL_CHAR">
370<!--   -->
371</a>
372<ul class="blockList">
373<li class="blockList">
374<h4>NULL_CHAR</h4>
375<pre>protected static final&nbsp;char NULL_CHAR</pre>
376<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.codehaus.jackson.io.UTF32Reader.NULL_CHAR">Constant Field Values</a></dd></dl>
377</li>
378</ul>
379<a name="NULL_BYTE">
380<!--   -->
381</a>
382<ul class="blockList">
383<li class="blockList">
384<h4>NULL_BYTE</h4>
385<pre>protected static final&nbsp;char NULL_BYTE</pre>
386<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.codehaus.jackson.io.UTF32Reader.NULL_BYTE">Constant Field Values</a></dd></dl>
387</li>
388</ul>
389<a name="_context">
390<!--   -->
391</a>
392<ul class="blockList">
393<li class="blockList">
394<h4>_context</h4>
395<pre>protected final&nbsp;<a href="../../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> _context</pre>
396</li>
397</ul>
398<a name="_in">
399<!--   -->
400</a>
401<ul class="blockList">
402<li class="blockList">
403<h4>_in</h4>
404<pre>protected&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> _in</pre>
405</li>
406</ul>
407<a name="_buffer">
408<!--   -->
409</a>
410<ul class="blockList">
411<li class="blockList">
412<h4>_buffer</h4>
413<pre>protected&nbsp;byte[] _buffer</pre>
414</li>
415</ul>
416<a name="_ptr">
417<!--   -->
418</a>
419<ul class="blockList">
420<li class="blockList">
421<h4>_ptr</h4>
422<pre>protected&nbsp;int _ptr</pre>
423</li>
424</ul>
425<a name="_length">
426<!--   -->
427</a>
428<ul class="blockList">
429<li class="blockList">
430<h4>_length</h4>
431<pre>protected&nbsp;int _length</pre>
432</li>
433</ul>
434<a name="_tmpBuf">
435<!--   -->
436</a>
437<ul class="blockListLast">
438<li class="blockList">
439<h4>_tmpBuf</h4>
440<pre>protected&nbsp;char[] _tmpBuf</pre>
441</li>
442</ul>
443</li>
444</ul>
445<!-- ========= CONSTRUCTOR DETAIL ======== -->
446<ul class="blockList">
447<li class="blockList"><a name="constructor_detail">
448<!--   -->
449</a>
450<h3>Constructor Detail</h3>
451<a name="UTF32Reader(org.codehaus.jackson.io.IOContext, java.io.InputStream, byte[], int, int, boolean)">
452<!--   -->
453</a>
454<ul class="blockListLast">
455<li class="blockList">
456<h4>UTF32Reader</h4>
457<pre>public&nbsp;UTF32Reader(<a href="../../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a>&nbsp;ctxt,
458           <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;in,
459           byte[]&nbsp;buf,
460           int&nbsp;ptr,
461           int&nbsp;len,
462           boolean&nbsp;isBigEndian)</pre>
463</li>
464</ul>
465</li>
466</ul>
467<!-- ============ METHOD DETAIL ========== -->
468<ul class="blockList">
469<li class="blockList"><a name="method_detail">
470<!--   -->
471</a>
472<h3>Method Detail</h3>
473<a name="read(char[], int, int)">
474<!--   -->
475</a>
476<ul class="blockList">
477<li class="blockList">
478<h4>read</h4>
479<pre>public&nbsp;int&nbsp;read(char[]&nbsp;cbuf,
480       int&nbsp;start,
481       int&nbsp;len)
482         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>
483<dl>
484<dt><strong>Specified by:</strong></dt>
485<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#read(char[], int, int)" title="class or interface in java.io">read</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></dd>
486<dt><span class="strong">Throws:</span></dt>
487<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>
488</li>
489</ul>
490<a name="close()">
491<!--   -->
492</a>
493<ul class="blockList">
494<li class="blockList">
495<h4>close</h4>
496<pre>public&nbsp;void&nbsp;close()
497           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>
498<dl>
499<dt><strong>Specified by:</strong></dt>
500<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>&nbsp;in interface&nbsp;<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>
501<dt><strong>Specified by:</strong></dt>
502<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>&nbsp;in interface&nbsp;<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>
503<dt><strong>Specified by:</strong></dt>
504<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#close()" title="class or interface in java.io">close</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></dd>
505<dt><span class="strong">Throws:</span></dt>
506<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>
507</li>
508</ul>
509<a name="read()">
510<!--   -->
511</a>
512<ul class="blockList">
513<li class="blockList">
514<h4>read</h4>
515<pre>public&nbsp;int&nbsp;read()
516         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>
517<div class="block">Although this method is implemented by the base class, AND it should
518 never be called by main code, let's still implement it bit more
519 efficiently just in case</div>
520<dl>
521<dt><strong>Overrides:</strong></dt>
522<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true#read()" title="class or interface in java.io">read</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></dd>
523<dt><span class="strong">Throws:</span></dt>
524<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>
525</li>
526</ul>
527<a name="freeBuffers()">
528<!--   -->
529</a>
530<ul class="blockList">
531<li class="blockList">
532<h4>freeBuffers</h4>
533<pre>public final&nbsp;void&nbsp;freeBuffers()</pre>
534<div class="block">This method should be called along with (or instead of) normal
535 close. After calling this method, no further reads should be tried.
536 Method will try to recycle read buffers (if any).</div>
537</li>
538</ul>
539<a name="reportBounds(char[], int, int)">
540<!--   -->
541</a>
542<ul class="blockList">
543<li class="blockList">
544<h4>reportBounds</h4>
545<pre>protected&nbsp;void&nbsp;reportBounds(char[]&nbsp;cbuf,
546                int&nbsp;start,
547                int&nbsp;len)
548                     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>
549<dl><dt><span class="strong">Throws:</span></dt>
550<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>
551</li>
552</ul>
553<a name="reportStrangeStream()">
554<!--   -->
555</a>
556<ul class="blockListLast">
557<li class="blockList">
558<h4>reportStrangeStream</h4>
559<pre>protected&nbsp;void&nbsp;reportStrangeStream()
560                            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>
561<dl><dt><span class="strong">Throws:</span></dt>
562<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>
563</li>
564</ul>
565</li>
566</ul>
567</li>
568</ul>
569</div>
570</div>
571<!-- ========= END OF CLASS DATA ========= -->
572<!-- ======= START OF BOTTOM NAVBAR ====== -->
573<div class="bottomNav"><a name="navbar_bottom">
574<!--   -->
575</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
576<!--   -->
577</a>
578<ul class="navList" title="Navigation">
579<li><a href="../../../../overview-summary.html">Overview</a></li>
580<li><a href="package-summary.html">Package</a></li>
581<li class="navBarCell1Rev">Class</li>
582<li><a href="class-use/UTF32Reader.html">Use</a></li>
583<li><a href="package-tree.html">Tree</a></li>
584<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
585<li><a href="../../../../index-all.html">Index</a></li>
586<li><a href="../../../../help-doc.html">Help</a></li>
587</ul>
588</div>
589<div class="subNav">
590<ul class="navList">
591<li><a href="../../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io"><span class="strong">Prev Class</span></a></li>
592<li><a href="../../../../org/codehaus/jackson/io/UTF8Writer.html" title="class in org.codehaus.jackson.io"><span class="strong">Next Class</span></a></li>
593</ul>
594<ul class="navList">
595<li><a href="../../../../index.html?org/codehaus/jackson/io/UTF32Reader.html" target="_top">Frames</a></li>
596<li><a href="UTF32Reader.html" target="_top">No Frames</a></li>
597</ul>
598<ul class="navList" id="allclasses_navbar_bottom">
599<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
600</ul>
601<div>
602<script type="text/javascript"><!--
603  allClassesLink = document.getElementById("allclasses_navbar_bottom");
604  if(window==top) {
605    allClassesLink.style.display = "block";
606  }
607  else {
608    allClassesLink.style.display = "none";
609  }
610  //-->
611</script>
612</div>
613<div>
614<ul class="subNavList">
615<li>Summary:&nbsp;</li>
616<li>Nested&nbsp;|&nbsp;</li>
617<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
618<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
619<li><a href="#method_summary">Method</a></li>
620</ul>
621<ul class="subNavList">
622<li>Detail:&nbsp;</li>
623<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
624<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
625<li><a href="#method_detail">Method</a></li>
626</ul>
627</div>
628<a name="skip-navbar_bottom">
629<!--   -->
630</a></div>
631<!-- ======== END OF BOTTOM NAVBAR ======= -->
632</body>
633</html>
634