XmlStreamReader.html 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <!-- Generated by javadoc -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <title>XmlStreamReader (Apache Commons IO 2.6 API)</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="XmlStreamReader (Apache Commons IO 2.6 API)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/XmlStreamReader.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../../../index-all.html">Index</a></li>
  47. <li><a href="../../../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../../../../org/apache/commons/io/input/WindowsLineEndingInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../../org/apache/commons/io/input/XmlStreamReaderException.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../../index.html?org/apache/commons/io/input/XmlStreamReader.html" target="_top">Frames</a></li>
  57. <li><a href="XmlStreamReader.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.apache.commons.io.input</div>
  96. <h2 title="Class XmlStreamReader" class="title">Class XmlStreamReader</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
  101. <li>
  102. <ul class="inheritance">
  103. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">java.io.Reader</a></li>
  104. <li>
  105. <ul class="inheritance">
  106. <li>org.apache.commons.io.input.XmlStreamReader</li>
  107. </ul>
  108. </li>
  109. </ul>
  110. </li>
  111. </ul>
  112. <div class="description">
  113. <ul class="blockList">
  114. <li class="blockList">
  115. <dl>
  116. <dt>All Implemented Interfaces:</dt>
  117. <dd><a href="http://docs.oracle.com/javase/7/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/7/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/7/docs/api/java/lang/Readable.html?is-external=true" title="class or interface in java.lang">Readable</a></dd>
  118. </dl>
  119. <hr>
  120. <br>
  121. <pre>public class <span class="typeNameLabel">XmlStreamReader</span>
  122. extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></pre>
  123. <div class="block">Character stream that handles all the necessary Voodoo to figure out the
  124. charset encoding of the XML document within the stream.
  125. <p>
  126. IMPORTANT: This class is not related in any way to the org.xml.sax.XMLReader.
  127. This one IS a character stream.
  128. <p>
  129. All this has to be done without consuming characters from the stream, if not
  130. the XML parser will not recognized the document as a valid XML. This is not
  131. 100% true, but it's close enough (UTF-8 BOM is not handled by all parsers
  132. right now, XmlStreamReader handles it and things work in all parsers).
  133. <p>
  134. The XmlStreamReader class handles the charset encoding of XML documents in
  135. Files, raw streams and HTTP streams by offering a wide set of constructors.
  136. <p>
  137. By default the charset encoding detection is lenient, the constructor with
  138. the lenient flag can be used for a script (following HTTP MIME and XML
  139. specifications). All this is nicely explained by Mark Pilgrim in his blog, <a
  140. href="http://diveintomark.org/archives/2004/02/13/xml-media-types">
  141. Determining the character encoding of a feed</a>.
  142. <p>
  143. Originally developed for <a href="http://rome.dev.java.net">ROME</a> under
  144. Apache License 2.0.</div>
  145. <dl>
  146. <dt><span class="simpleTagLabel">Since:</span></dt>
  147. <dd>2.0</dd>
  148. <dt><span class="seeLabel">See Also:</span></dt>
  149. <dd><a href="../../../../../org/apache/commons/io/output/XmlStreamWriter.html" title="class in org.apache.commons.io.output"><code>XmlStreamWriter</code></a></dd>
  150. </dl>
  151. </li>
  152. </ul>
  153. </div>
  154. <div class="summary">
  155. <ul class="blockList">
  156. <li class="blockList">
  157. <!-- =========== FIELD SUMMARY =========== -->
  158. <ul class="blockList">
  159. <li class="blockList"><a name="field.summary">
  160. <!-- -->
  161. </a>
  162. <h3>Field Summary</h3>
  163. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  164. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  165. <tr>
  166. <th class="colFirst" scope="col">Modifier and Type</th>
  167. <th class="colLast" scope="col">Field and Description</th>
  168. </tr>
  169. <tr class="altColor">
  170. <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a></code></td>
  171. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#ENCODING_PATTERN">ENCODING_PATTERN</a></span></code>&nbsp;</td>
  172. </tr>
  173. </table>
  174. <ul class="blockList">
  175. <li class="blockList"><a name="fields.inherited.from.class.java.io.Reader">
  176. <!-- -->
  177. </a>
  178. <h3>Fields inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></h3>
  179. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true#lock" title="class or interface in java.io">lock</a></code></li>
  180. </ul>
  181. </li>
  182. </ul>
  183. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  184. <ul class="blockList">
  185. <li class="blockList"><a name="constructor.summary">
  186. <!-- -->
  187. </a>
  188. <h3>Constructor Summary</h3>
  189. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  190. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  191. <tr>
  192. <th class="colOne" scope="col">Constructor and Description</th>
  193. </tr>
  194. <tr class="altColor">
  195. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.File-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;file)</code>
  196. <div class="block">Creates a Reader for a File.</div>
  197. </td>
  198. </tr>
  199. <tr class="rowColor">
  200. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.InputStream-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is)</code>
  201. <div class="block">Creates a Reader for a raw InputStream.</div>
  202. </td>
  203. </tr>
  204. <tr class="altColor">
  205. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.InputStream-boolean-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  206. boolean&nbsp;lenient)</code>
  207. <div class="block">Creates a Reader for a raw InputStream.</div>
  208. </td>
  209. </tr>
  210. <tr class="rowColor">
  211. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.InputStream-boolean-java.lang.String-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  212. boolean&nbsp;lenient,
  213. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultEncoding)</code>
  214. <div class="block">Creates a Reader for a raw InputStream.</div>
  215. </td>
  216. </tr>
  217. <tr class="altColor">
  218. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.InputStream-java.lang.String-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  219. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;httpContentType)</code>
  220. <div class="block">Creates a Reader using an InputStream and the associated content-type
  221. header.</div>
  222. </td>
  223. </tr>
  224. <tr class="rowColor">
  225. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.InputStream-java.lang.String-boolean-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  226. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;httpContentType,
  227. boolean&nbsp;lenient)</code>
  228. <div class="block">Creates a Reader using an InputStream and the associated content-type
  229. header.</div>
  230. </td>
  231. </tr>
  232. <tr class="altColor">
  233. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.io.InputStream-java.lang.String-boolean-java.lang.String-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  234. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;httpContentType,
  235. boolean&nbsp;lenient,
  236. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultEncoding)</code>
  237. <div class="block">Creates a Reader using an InputStream and the associated content-type
  238. header.</div>
  239. </td>
  240. </tr>
  241. <tr class="rowColor">
  242. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.net.URL-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>&nbsp;url)</code>
  243. <div class="block">Creates a Reader using the InputStream of a URL.</div>
  244. </td>
  245. </tr>
  246. <tr class="altColor">
  247. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#XmlStreamReader-java.net.URLConnection-java.lang.String-">XmlStreamReader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a>&nbsp;conn,
  248. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultEncoding)</code>
  249. <div class="block">Creates a Reader using the InputStream of a URLConnection.</div>
  250. </td>
  251. </tr>
  252. </table>
  253. </li>
  254. </ul>
  255. <!-- ========== METHOD SUMMARY =========== -->
  256. <ul class="blockList">
  257. <li class="blockList"><a name="method.summary">
  258. <!-- -->
  259. </a>
  260. <h3>Method Summary</h3>
  261. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  262. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  263. <tr>
  264. <th class="colFirst" scope="col">Modifier and Type</th>
  265. <th class="colLast" scope="col">Method and Description</th>
  266. </tr>
  267. <tr id="i0" class="altColor">
  268. <td class="colFirst"><code>void</code></td>
  269. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#close--">close</a></span>()</code>
  270. <div class="block">Closes the XmlStreamReader stream.</div>
  271. </td>
  272. </tr>
  273. <tr id="i1" class="rowColor">
  274. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
  275. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#getDefaultEncoding--">getDefaultEncoding</a></span>()</code>
  276. <div class="block">Returns the default encoding to use if none is set in HTTP content-type,
  277. XML prolog and the rules based on content-type are not adequate.</div>
  278. </td>
  279. </tr>
  280. <tr id="i2" class="altColor">
  281. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
  282. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#getEncoding--">getEncoding</a></span>()</code>
  283. <div class="block">Returns the charset encoding of the XmlStreamReader.</div>
  284. </td>
  285. </tr>
  286. <tr id="i3" class="rowColor">
  287. <td class="colFirst"><code>int</code></td>
  288. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/XmlStreamReader.html#read-char:A-int-int-">read</a></span>(char[]&nbsp;buf,
  289. int&nbsp;offset,
  290. int&nbsp;len)</code>
  291. <div class="block">Invokes the underlying reader's <code>read(char[], int, int)</code> method.</div>
  292. </td>
  293. </tr>
  294. </table>
  295. <ul class="blockList">
  296. <li class="blockList"><a name="methods.inherited.from.class.java.io.Reader">
  297. <!-- -->
  298. </a>
  299. <h3>Methods inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></h3>
  300. <code><a href="http://docs.oracle.com/javase/7/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/7/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/7/docs/api/java/io/Reader.html?is-external=true#read--" title="class or interface in java.io">read</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true#read-char:A-" title="class or interface in java.io">read</a>, <a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/docs/api/java/io/Reader.html?is-external=true#skip-long-" title="class or interface in java.io">skip</a></code></li>
  301. </ul>
  302. <ul class="blockList">
  303. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  304. <!-- -->
  305. </a>
  306. <h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
  307. <code><a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
  308. </ul>
  309. </li>
  310. </ul>
  311. </li>
  312. </ul>
  313. </div>
  314. <div class="details">
  315. <ul class="blockList">
  316. <li class="blockList">
  317. <!-- ============ FIELD DETAIL =========== -->
  318. <ul class="blockList">
  319. <li class="blockList"><a name="field.detail">
  320. <!-- -->
  321. </a>
  322. <h3>Field Detail</h3>
  323. <a name="ENCODING_PATTERN">
  324. <!-- -->
  325. </a>
  326. <ul class="blockListLast">
  327. <li class="blockList">
  328. <h4>ENCODING_PATTERN</h4>
  329. <pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a> ENCODING_PATTERN</pre>
  330. </li>
  331. </ul>
  332. </li>
  333. </ul>
  334. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  335. <ul class="blockList">
  336. <li class="blockList"><a name="constructor.detail">
  337. <!-- -->
  338. </a>
  339. <h3>Constructor Detail</h3>
  340. <a name="XmlStreamReader-java.io.File-">
  341. <!-- -->
  342. </a>
  343. <ul class="blockList">
  344. <li class="blockList">
  345. <h4>XmlStreamReader</h4>
  346. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;file)
  347. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  348. <div class="block">Creates a Reader for a File.
  349. <p>
  350. It looks for the UTF-8 BOM first, if none sniffs the XML prolog charset,
  351. if this is also missing defaults to UTF-8.
  352. <p>
  353. It does a lenient charset encoding detection, check the constructor with
  354. the lenient parameter for details.</div>
  355. <dl>
  356. <dt><span class="paramLabel">Parameters:</span></dt>
  357. <dd><code>file</code> - File to create a Reader from.</dd>
  358. <dt><span class="throwsLabel">Throws:</span></dt>
  359. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the file.</dd>
  360. </dl>
  361. </li>
  362. </ul>
  363. <a name="XmlStreamReader-java.io.InputStream-">
  364. <!-- -->
  365. </a>
  366. <ul class="blockList">
  367. <li class="blockList">
  368. <h4>XmlStreamReader</h4>
  369. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is)
  370. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  371. <div class="block">Creates a Reader for a raw InputStream.
  372. <p>
  373. It follows the same logic used for files.
  374. <p>
  375. It does a lenient charset encoding detection, check the constructor with
  376. the lenient parameter for details.</div>
  377. <dl>
  378. <dt><span class="paramLabel">Parameters:</span></dt>
  379. <dd><code>is</code> - InputStream to create a Reader from.</dd>
  380. <dt><span class="throwsLabel">Throws:</span></dt>
  381. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the stream.</dd>
  382. </dl>
  383. </li>
  384. </ul>
  385. <a name="XmlStreamReader-java.io.InputStream-boolean-">
  386. <!-- -->
  387. </a>
  388. <ul class="blockList">
  389. <li class="blockList">
  390. <h4>XmlStreamReader</h4>
  391. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  392. boolean&nbsp;lenient)
  393. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  394. <div class="block">Creates a Reader for a raw InputStream.
  395. <p>
  396. It follows the same logic used for files.
  397. <p>
  398. If lenient detection is indicated and the detection above fails as per
  399. specifications it then attempts the following:
  400. <p>
  401. If the content type was 'text/html' it replaces it with 'text/xml' and
  402. tries the detection again.
  403. <p>
  404. Else if the XML prolog had a charset encoding that encoding is used.
  405. <p>
  406. Else if the content type had a charset encoding that encoding is used.
  407. <p>
  408. Else 'UTF-8' is used.
  409. <p>
  410. If lenient detection is indicated an XmlStreamReaderException is never
  411. thrown.</div>
  412. <dl>
  413. <dt><span class="paramLabel">Parameters:</span></dt>
  414. <dd><code>is</code> - InputStream to create a Reader from.</dd>
  415. <dd><code>lenient</code> - indicates if the charset encoding detection should be
  416. relaxed.</dd>
  417. <dt><span class="throwsLabel">Throws:</span></dt>
  418. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the stream.</dd>
  419. <dd><code><a href="../../../../../org/apache/commons/io/input/XmlStreamReaderException.html" title="class in org.apache.commons.io.input">XmlStreamReaderException</a></code> - thrown if the charset encoding could not
  420. be determined according to the specs.</dd>
  421. </dl>
  422. </li>
  423. </ul>
  424. <a name="XmlStreamReader-java.io.InputStream-boolean-java.lang.String-">
  425. <!-- -->
  426. </a>
  427. <ul class="blockList">
  428. <li class="blockList">
  429. <h4>XmlStreamReader</h4>
  430. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  431. boolean&nbsp;lenient,
  432. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultEncoding)
  433. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  434. <div class="block">Creates a Reader for a raw InputStream.
  435. <p>
  436. It follows the same logic used for files.
  437. <p>
  438. If lenient detection is indicated and the detection above fails as per
  439. specifications it then attempts the following:
  440. <p>
  441. If the content type was 'text/html' it replaces it with 'text/xml' and
  442. tries the detection again.
  443. <p>
  444. Else if the XML prolog had a charset encoding that encoding is used.
  445. <p>
  446. Else if the content type had a charset encoding that encoding is used.
  447. <p>
  448. Else 'UTF-8' is used.
  449. <p>
  450. If lenient detection is indicated an XmlStreamReaderException is never
  451. thrown.</div>
  452. <dl>
  453. <dt><span class="paramLabel">Parameters:</span></dt>
  454. <dd><code>is</code> - InputStream to create a Reader from.</dd>
  455. <dd><code>lenient</code> - indicates if the charset encoding detection should be
  456. relaxed.</dd>
  457. <dd><code>defaultEncoding</code> - The default encoding</dd>
  458. <dt><span class="throwsLabel">Throws:</span></dt>
  459. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the stream.</dd>
  460. <dd><code><a href="../../../../../org/apache/commons/io/input/XmlStreamReaderException.html" title="class in org.apache.commons.io.input">XmlStreamReaderException</a></code> - thrown if the charset encoding could not
  461. be determined according to the specs.</dd>
  462. </dl>
  463. </li>
  464. </ul>
  465. <a name="XmlStreamReader-java.net.URL-">
  466. <!-- -->
  467. </a>
  468. <ul class="blockList">
  469. <li class="blockList">
  470. <h4>XmlStreamReader</h4>
  471. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>&nbsp;url)
  472. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  473. <div class="block">Creates a Reader using the InputStream of a URL.
  474. <p>
  475. If the URL is not of type HTTP and there is not 'content-type' header in
  476. the fetched data it uses the same logic used for Files.
  477. <p>
  478. If the URL is a HTTP Url or there is a 'content-type' header in the
  479. fetched data it uses the same logic used for an InputStream with
  480. content-type.
  481. <p>
  482. It does a lenient charset encoding detection, check the constructor with
  483. the lenient parameter for details.</div>
  484. <dl>
  485. <dt><span class="paramLabel">Parameters:</span></dt>
  486. <dd><code>url</code> - URL to create a Reader from.</dd>
  487. <dt><span class="throwsLabel">Throws:</span></dt>
  488. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the stream of
  489. the URL.</dd>
  490. </dl>
  491. </li>
  492. </ul>
  493. <a name="XmlStreamReader-java.net.URLConnection-java.lang.String-">
  494. <!-- -->
  495. </a>
  496. <ul class="blockList">
  497. <li class="blockList">
  498. <h4>XmlStreamReader</h4>
  499. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/net/URLConnection.html?is-external=true" title="class or interface in java.net">URLConnection</a>&nbsp;conn,
  500. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultEncoding)
  501. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  502. <div class="block">Creates a Reader using the InputStream of a URLConnection.
  503. <p>
  504. If the URLConnection is not of type HttpURLConnection and there is not
  505. 'content-type' header in the fetched data it uses the same logic used for
  506. files.
  507. <p>
  508. If the URLConnection is a HTTP Url or there is a 'content-type' header in
  509. the fetched data it uses the same logic used for an InputStream with
  510. content-type.
  511. <p>
  512. It does a lenient charset encoding detection, check the constructor with
  513. the lenient parameter for details.</div>
  514. <dl>
  515. <dt><span class="paramLabel">Parameters:</span></dt>
  516. <dd><code>conn</code> - URLConnection to create a Reader from.</dd>
  517. <dd><code>defaultEncoding</code> - The default encoding</dd>
  518. <dt><span class="throwsLabel">Throws:</span></dt>
  519. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the stream of
  520. the URLConnection.</dd>
  521. </dl>
  522. </li>
  523. </ul>
  524. <a name="XmlStreamReader-java.io.InputStream-java.lang.String-">
  525. <!-- -->
  526. </a>
  527. <ul class="blockList">
  528. <li class="blockList">
  529. <h4>XmlStreamReader</h4>
  530. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  531. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;httpContentType)
  532. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  533. <div class="block">Creates a Reader using an InputStream and the associated content-type
  534. header.
  535. <p>
  536. First it checks if the stream has BOM. If there is not BOM checks the
  537. content-type encoding. If there is not content-type encoding checks the
  538. XML prolog encoding. If there is not XML prolog encoding uses the default
  539. encoding mandated by the content-type MIME type.
  540. <p>
  541. It does a lenient charset encoding detection, check the constructor with
  542. the lenient parameter for details.</div>
  543. <dl>
  544. <dt><span class="paramLabel">Parameters:</span></dt>
  545. <dd><code>is</code> - InputStream to create the reader from.</dd>
  546. <dd><code>httpContentType</code> - content-type header to use for the resolution of
  547. the charset encoding.</dd>
  548. <dt><span class="throwsLabel">Throws:</span></dt>
  549. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the file.</dd>
  550. </dl>
  551. </li>
  552. </ul>
  553. <a name="XmlStreamReader-java.io.InputStream-java.lang.String-boolean-java.lang.String-">
  554. <!-- -->
  555. </a>
  556. <ul class="blockList">
  557. <li class="blockList">
  558. <h4>XmlStreamReader</h4>
  559. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  560. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;httpContentType,
  561. boolean&nbsp;lenient,
  562. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;defaultEncoding)
  563. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  564. <div class="block">Creates a Reader using an InputStream and the associated content-type
  565. header. This constructor is lenient regarding the encoding detection.
  566. <p>
  567. First it checks if the stream has BOM. If there is not BOM checks the
  568. content-type encoding. If there is not content-type encoding checks the
  569. XML prolog encoding. If there is not XML prolog encoding uses the default
  570. encoding mandated by the content-type MIME type.
  571. <p>
  572. If lenient detection is indicated and the detection above fails as per
  573. specifications it then attempts the following:
  574. <p>
  575. If the content type was 'text/html' it replaces it with 'text/xml' and
  576. tries the detection again.
  577. <p>
  578. Else if the XML prolog had a charset encoding that encoding is used.
  579. <p>
  580. Else if the content type had a charset encoding that encoding is used.
  581. <p>
  582. Else 'UTF-8' is used.
  583. <p>
  584. If lenient detection is indicated an XmlStreamReaderException is never
  585. thrown.</div>
  586. <dl>
  587. <dt><span class="paramLabel">Parameters:</span></dt>
  588. <dd><code>is</code> - InputStream to create the reader from.</dd>
  589. <dd><code>httpContentType</code> - content-type header to use for the resolution of
  590. the charset encoding.</dd>
  591. <dd><code>lenient</code> - indicates if the charset encoding detection should be
  592. relaxed.</dd>
  593. <dd><code>defaultEncoding</code> - The default encoding</dd>
  594. <dt><span class="throwsLabel">Throws:</span></dt>
  595. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the file.</dd>
  596. <dd><code><a href="../../../../../org/apache/commons/io/input/XmlStreamReaderException.html" title="class in org.apache.commons.io.input">XmlStreamReaderException</a></code> - thrown if the charset encoding could not
  597. be determined according to the specs.</dd>
  598. </dl>
  599. </li>
  600. </ul>
  601. <a name="XmlStreamReader-java.io.InputStream-java.lang.String-boolean-">
  602. <!-- -->
  603. </a>
  604. <ul class="blockListLast">
  605. <li class="blockList">
  606. <h4>XmlStreamReader</h4>
  607. <pre>public&nbsp;XmlStreamReader(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;is,
  608. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;httpContentType,
  609. boolean&nbsp;lenient)
  610. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  611. <div class="block">Creates a Reader using an InputStream and the associated content-type
  612. header. This constructor is lenient regarding the encoding detection.
  613. <p>
  614. First it checks if the stream has BOM. If there is not BOM checks the
  615. content-type encoding. If there is not content-type encoding checks the
  616. XML prolog encoding. If there is not XML prolog encoding uses the default
  617. encoding mandated by the content-type MIME type.
  618. <p>
  619. If lenient detection is indicated and the detection above fails as per
  620. specifications it then attempts the following:
  621. <p>
  622. If the content type was 'text/html' it replaces it with 'text/xml' and
  623. tries the detection again.
  624. <p>
  625. Else if the XML prolog had a charset encoding that encoding is used.
  626. <p>
  627. Else if the content type had a charset encoding that encoding is used.
  628. <p>
  629. Else 'UTF-8' is used.
  630. <p>
  631. If lenient detection is indicated an XmlStreamReaderException is never
  632. thrown.</div>
  633. <dl>
  634. <dt><span class="paramLabel">Parameters:</span></dt>
  635. <dd><code>is</code> - InputStream to create the reader from.</dd>
  636. <dd><code>httpContentType</code> - content-type header to use for the resolution of
  637. the charset encoding.</dd>
  638. <dd><code>lenient</code> - indicates if the charset encoding detection should be
  639. relaxed.</dd>
  640. <dt><span class="throwsLabel">Throws:</span></dt>
  641. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there is a problem reading the file.</dd>
  642. <dd><code><a href="../../../../../org/apache/commons/io/input/XmlStreamReaderException.html" title="class in org.apache.commons.io.input">XmlStreamReaderException</a></code> - thrown if the charset encoding could not
  643. be determined according to the specs.</dd>
  644. </dl>
  645. </li>
  646. </ul>
  647. </li>
  648. </ul>
  649. <!-- ============ METHOD DETAIL ========== -->
  650. <ul class="blockList">
  651. <li class="blockList"><a name="method.detail">
  652. <!-- -->
  653. </a>
  654. <h3>Method Detail</h3>
  655. <a name="getDefaultEncoding--">
  656. <!-- -->
  657. </a>
  658. <ul class="blockList">
  659. <li class="blockList">
  660. <h4>getDefaultEncoding</h4>
  661. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getDefaultEncoding()</pre>
  662. <div class="block">Returns the default encoding to use if none is set in HTTP content-type,
  663. XML prolog and the rules based on content-type are not adequate.
  664. <p>
  665. If it is NULL the content-type based rules are used.</div>
  666. <dl>
  667. <dt><span class="returnLabel">Returns:</span></dt>
  668. <dd>the default encoding to use.</dd>
  669. </dl>
  670. </li>
  671. </ul>
  672. <a name="getEncoding--">
  673. <!-- -->
  674. </a>
  675. <ul class="blockList">
  676. <li class="blockList">
  677. <h4>getEncoding</h4>
  678. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getEncoding()</pre>
  679. <div class="block">Returns the charset encoding of the XmlStreamReader.</div>
  680. <dl>
  681. <dt><span class="returnLabel">Returns:</span></dt>
  682. <dd>charset encoding.</dd>
  683. </dl>
  684. </li>
  685. </ul>
  686. <a name="read-char:A-int-int-">
  687. <!-- -->
  688. </a>
  689. <ul class="blockList">
  690. <li class="blockList">
  691. <h4>read</h4>
  692. <pre>public&nbsp;int&nbsp;read(char[]&nbsp;buf,
  693. int&nbsp;offset,
  694. int&nbsp;len)
  695. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  696. <div class="block">Invokes the underlying reader's <code>read(char[], int, int)</code> method.</div>
  697. <dl>
  698. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  699. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true#read-char:A-int-int-" title="class or interface in java.io">read</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></dd>
  700. <dt><span class="paramLabel">Parameters:</span></dt>
  701. <dd><code>buf</code> - the buffer to read the characters into</dd>
  702. <dd><code>offset</code> - The start offset</dd>
  703. <dd><code>len</code> - The number of bytes to read</dd>
  704. <dt><span class="returnLabel">Returns:</span></dt>
  705. <dd>the number of characters read or -1 if the end of stream</dd>
  706. <dt><span class="throwsLabel">Throws:</span></dt>
  707. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs</dd>
  708. </dl>
  709. </li>
  710. </ul>
  711. <a name="close--">
  712. <!-- -->
  713. </a>
  714. <ul class="blockListLast">
  715. <li class="blockList">
  716. <h4>close</h4>
  717. <pre>public&nbsp;void&nbsp;close()
  718. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  719. <div class="block">Closes the XmlStreamReader stream.</div>
  720. <dl>
  721. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  722. <dd><code><a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
  723. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  724. <dd><code><a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
  725. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  726. <dd><code><a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a></code></dd>
  727. <dt><span class="throwsLabel">Throws:</span></dt>
  728. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - thrown if there was a problem closing the stream.</dd>
  729. </dl>
  730. </li>
  731. </ul>
  732. </li>
  733. </ul>
  734. </li>
  735. </ul>
  736. </div>
  737. </div>
  738. <!-- ========= END OF CLASS DATA ========= -->
  739. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  740. <div class="bottomNav"><a name="navbar.bottom">
  741. <!-- -->
  742. </a>
  743. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  744. <a name="navbar.bottom.firstrow">
  745. <!-- -->
  746. </a>
  747. <ul class="navList" title="Navigation">
  748. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  749. <li><a href="package-summary.html">Package</a></li>
  750. <li class="navBarCell1Rev">Class</li>
  751. <li><a href="class-use/XmlStreamReader.html">Use</a></li>
  752. <li><a href="package-tree.html">Tree</a></li>
  753. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  754. <li><a href="../../../../../index-all.html">Index</a></li>
  755. <li><a href="../../../../../help-doc.html">Help</a></li>
  756. </ul>
  757. </div>
  758. <div class="subNav">
  759. <ul class="navList">
  760. <li><a href="../../../../../org/apache/commons/io/input/WindowsLineEndingInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  761. <li><a href="../../../../../org/apache/commons/io/input/XmlStreamReaderException.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  762. </ul>
  763. <ul class="navList">
  764. <li><a href="../../../../../index.html?org/apache/commons/io/input/XmlStreamReader.html" target="_top">Frames</a></li>
  765. <li><a href="XmlStreamReader.html" target="_top">No&nbsp;Frames</a></li>
  766. </ul>
  767. <ul class="navList" id="allclasses_navbar_bottom">
  768. <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  769. </ul>
  770. <div>
  771. <script type="text/javascript"><!--
  772. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  773. if(window==top) {
  774. allClassesLink.style.display = "block";
  775. }
  776. else {
  777. allClassesLink.style.display = "none";
  778. }
  779. //-->
  780. </script>
  781. </div>
  782. <div>
  783. <ul class="subNavList">
  784. <li>Summary:&nbsp;</li>
  785. <li>Nested&nbsp;|&nbsp;</li>
  786. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  787. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  788. <li><a href="#method.summary">Method</a></li>
  789. </ul>
  790. <ul class="subNavList">
  791. <li>Detail:&nbsp;</li>
  792. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  793. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  794. <li><a href="#method.detail">Method</a></li>
  795. </ul>
  796. </div>
  797. <a name="skip.navbar.bottom">
  798. <!-- -->
  799. </a></div>
  800. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  801. <p class="legalCopy"><small>Copyright &#169; 2002&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  802. </body>
  803. </html>