TeeInputStream.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  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>TeeInputStream (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="TeeInputStream (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/TeeInputStream.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/TailerListenerAdapter.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/UnixLineEndingInputStream.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/TeeInputStream.html" target="_top">Frames</a></li>
  57. <li><a href="TeeInputStream.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="#fields.inherited.from.class.java.io.FilterInputStream">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>Field&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 TeeInputStream" class="title">Class TeeInputStream</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/InputStream.html?is-external=true" title="class or interface in java.io">java.io.InputStream</a></li>
  104. <li>
  105. <ul class="inheritance">
  106. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">java.io.FilterInputStream</a></li>
  107. <li>
  108. <ul class="inheritance">
  109. <li><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">org.apache.commons.io.input.ProxyInputStream</a></li>
  110. <li>
  111. <ul class="inheritance">
  112. <li>org.apache.commons.io.input.TeeInputStream</li>
  113. </ul>
  114. </li>
  115. </ul>
  116. </li>
  117. </ul>
  118. </li>
  119. </ul>
  120. </li>
  121. </ul>
  122. <div class="description">
  123. <ul class="blockList">
  124. <li class="blockList">
  125. <dl>
  126. <dt>All Implemented Interfaces:</dt>
  127. <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></dd>
  128. </dl>
  129. <hr>
  130. <br>
  131. <pre>public class <span class="typeNameLabel">TeeInputStream</span>
  132. extends <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></pre>
  133. <div class="block">InputStream proxy that transparently writes a copy of all bytes read
  134. from the proxied stream to a given OutputStream. Using <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#skip-long-"><code>ProxyInputStream.skip(long)</code></a>
  135. or <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#mark-int-"><code>ProxyInputStream.mark(int)</code></a>/<a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#reset--"><code>ProxyInputStream.reset()</code></a> on the stream will result on some
  136. bytes from the input stream being skipped or duplicated in the output
  137. stream.
  138. <p>
  139. The proxied input stream is closed when the <a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#close--"><code>close()</code></a> method is
  140. called on this proxy. It is configurable whether the associated output
  141. stream will also closed.</div>
  142. <dl>
  143. <dt><span class="simpleTagLabel">Since:</span></dt>
  144. <dd>1.4</dd>
  145. <dt><span class="seeLabel">See Also:</span></dt>
  146. <dd><a href="../../../../../org/apache/commons/io/input/ObservableInputStream.html" title="class in org.apache.commons.io.input"><code>ObservableInputStream</code></a></dd>
  147. </dl>
  148. </li>
  149. </ul>
  150. </div>
  151. <div class="summary">
  152. <ul class="blockList">
  153. <li class="blockList">
  154. <!-- =========== FIELD SUMMARY =========== -->
  155. <ul class="blockList">
  156. <li class="blockList"><a name="field.summary">
  157. <!-- -->
  158. </a>
  159. <h3>Field Summary</h3>
  160. <ul class="blockList">
  161. <li class="blockList"><a name="fields.inherited.from.class.java.io.FilterInputStream">
  162. <!-- -->
  163. </a>
  164. <h3>Fields inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</a></h3>
  165. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html?is-external=true#in" title="class or interface in java.io">in</a></code></li>
  166. </ul>
  167. </li>
  168. </ul>
  169. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  170. <ul class="blockList">
  171. <li class="blockList"><a name="constructor.summary">
  172. <!-- -->
  173. </a>
  174. <h3>Constructor Summary</h3>
  175. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  176. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  177. <tr>
  178. <th class="colOne" scope="col">Constructor and Description</th>
  179. </tr>
  180. <tr class="altColor">
  181. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#TeeInputStream-java.io.InputStream-java.io.OutputStream-">TeeInputStream</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;input,
  182. <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;branch)</code>
  183. <div class="block">Creates a TeeInputStream that proxies the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>
  184. and copies all read bytes to the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a>.</div>
  185. </td>
  186. </tr>
  187. <tr class="rowColor">
  188. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#TeeInputStream-java.io.InputStream-java.io.OutputStream-boolean-">TeeInputStream</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;input,
  189. <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;branch,
  190. boolean&nbsp;closeBranch)</code>
  191. <div class="block">Creates a TeeInputStream that proxies the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>
  192. and copies all read bytes to the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a>.</div>
  193. </td>
  194. </tr>
  195. </table>
  196. </li>
  197. </ul>
  198. <!-- ========== METHOD SUMMARY =========== -->
  199. <ul class="blockList">
  200. <li class="blockList"><a name="method.summary">
  201. <!-- -->
  202. </a>
  203. <h3>Method Summary</h3>
  204. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  205. <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>
  206. <tr>
  207. <th class="colFirst" scope="col">Modifier and Type</th>
  208. <th class="colLast" scope="col">Method and Description</th>
  209. </tr>
  210. <tr id="i0" class="altColor">
  211. <td class="colFirst"><code>void</code></td>
  212. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#close--">close</a></span>()</code>
  213. <div class="block">Closes the proxied input stream and, if so configured, the associated
  214. output stream.</div>
  215. </td>
  216. </tr>
  217. <tr id="i1" class="rowColor">
  218. <td class="colFirst"><code>int</code></td>
  219. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#read--">read</a></span>()</code>
  220. <div class="block">Reads a single byte from the proxied input stream and writes it to
  221. the associated output stream.</div>
  222. </td>
  223. </tr>
  224. <tr id="i2" class="altColor">
  225. <td class="colFirst"><code>int</code></td>
  226. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#read-byte:A-">read</a></span>(byte[]&nbsp;bts)</code>
  227. <div class="block">Reads bytes from the proxied input stream and writes the read bytes
  228. to the associated output stream.</div>
  229. </td>
  230. </tr>
  231. <tr id="i3" class="rowColor">
  232. <td class="colFirst"><code>int</code></td>
  233. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/TeeInputStream.html#read-byte:A-int-int-">read</a></span>(byte[]&nbsp;bts,
  234. int&nbsp;st,
  235. int&nbsp;end)</code>
  236. <div class="block">Reads bytes from the proxied input stream and writes the read bytes
  237. to the associated output stream.</div>
  238. </td>
  239. </tr>
  240. </table>
  241. <ul class="blockList">
  242. <li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.io.input.ProxyInputStream">
  243. <!-- -->
  244. </a>
  245. <h3>Methods inherited from class&nbsp;org.apache.commons.io.input.<a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></h3>
  246. <code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#afterRead-int-">afterRead</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#available--">available</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#beforeRead-int-">beforeRead</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#handleIOException-java.io.IOException-">handleIOException</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#mark-int-">mark</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#markSupported--">markSupported</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#reset--">reset</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#skip-long-">skip</a></code></li>
  247. </ul>
  248. <ul class="blockList">
  249. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  250. <!-- -->
  251. </a>
  252. <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>
  253. <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>
  254. </ul>
  255. </li>
  256. </ul>
  257. </li>
  258. </ul>
  259. </div>
  260. <div class="details">
  261. <ul class="blockList">
  262. <li class="blockList">
  263. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  264. <ul class="blockList">
  265. <li class="blockList"><a name="constructor.detail">
  266. <!-- -->
  267. </a>
  268. <h3>Constructor Detail</h3>
  269. <a name="TeeInputStream-java.io.InputStream-java.io.OutputStream-">
  270. <!-- -->
  271. </a>
  272. <ul class="blockList">
  273. <li class="blockList">
  274. <h4>TeeInputStream</h4>
  275. <pre>public&nbsp;TeeInputStream(<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;input,
  276. <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;branch)</pre>
  277. <div class="block">Creates a TeeInputStream that proxies the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>
  278. and copies all read bytes to the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a>. The given
  279. output stream will not be closed when this stream gets closed.</div>
  280. <dl>
  281. <dt><span class="paramLabel">Parameters:</span></dt>
  282. <dd><code>input</code> - input stream to be proxied</dd>
  283. <dd><code>branch</code> - output stream that will receive a copy of all bytes read</dd>
  284. </dl>
  285. </li>
  286. </ul>
  287. <a name="TeeInputStream-java.io.InputStream-java.io.OutputStream-boolean-">
  288. <!-- -->
  289. </a>
  290. <ul class="blockListLast">
  291. <li class="blockList">
  292. <h4>TeeInputStream</h4>
  293. <pre>public&nbsp;TeeInputStream(<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;input,
  294. <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;branch,
  295. boolean&nbsp;closeBranch)</pre>
  296. <div class="block">Creates a TeeInputStream that proxies the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>
  297. and copies all read bytes to the given <a href="http://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a>. The given
  298. output stream will be closed when this stream gets closed if the
  299. closeBranch parameter is <code>true</code>.</div>
  300. <dl>
  301. <dt><span class="paramLabel">Parameters:</span></dt>
  302. <dd><code>input</code> - input stream to be proxied</dd>
  303. <dd><code>branch</code> - output stream that will receive a copy of all bytes read</dd>
  304. <dd><code>closeBranch</code> - flag for closing also the output stream when this
  305. stream is closed</dd>
  306. </dl>
  307. </li>
  308. </ul>
  309. </li>
  310. </ul>
  311. <!-- ============ METHOD DETAIL ========== -->
  312. <ul class="blockList">
  313. <li class="blockList"><a name="method.detail">
  314. <!-- -->
  315. </a>
  316. <h3>Method Detail</h3>
  317. <a name="close--">
  318. <!-- -->
  319. </a>
  320. <ul class="blockList">
  321. <li class="blockList">
  322. <h4>close</h4>
  323. <pre>public&nbsp;void&nbsp;close()
  324. 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>
  325. <div class="block">Closes the proxied input stream and, if so configured, the associated
  326. output stream. An exception thrown from one stream will not prevent
  327. closing of the other stream.</div>
  328. <dl>
  329. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  330. <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>
  331. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  332. <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>
  333. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  334. <dd><code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#close--">close</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></code></dd>
  335. <dt><span class="throwsLabel">Throws:</span></dt>
  336. <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 either of the streams could not be closed</dd>
  337. </dl>
  338. </li>
  339. </ul>
  340. <a name="read--">
  341. <!-- -->
  342. </a>
  343. <ul class="blockList">
  344. <li class="blockList">
  345. <h4>read</h4>
  346. <pre>public&nbsp;int&nbsp;read()
  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">Reads a single byte from the proxied input stream and writes it to
  349. the associated output stream.</div>
  350. <dl>
  351. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  352. <dd><code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#read--">read</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></code></dd>
  353. <dt><span class="returnLabel">Returns:</span></dt>
  354. <dd>next byte from the stream, or -1 if the stream has ended</dd>
  355. <dt><span class="throwsLabel">Throws:</span></dt>
  356. <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 the stream could not be read (or written)</dd>
  357. </dl>
  358. </li>
  359. </ul>
  360. <a name="read-byte:A-int-int-">
  361. <!-- -->
  362. </a>
  363. <ul class="blockList">
  364. <li class="blockList">
  365. <h4>read</h4>
  366. <pre>public&nbsp;int&nbsp;read(byte[]&nbsp;bts,
  367. int&nbsp;st,
  368. int&nbsp;end)
  369. 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>
  370. <div class="block">Reads bytes from the proxied input stream and writes the read bytes
  371. to the associated output stream.</div>
  372. <dl>
  373. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  374. <dd><code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#read-byte:A-int-int-">read</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></code></dd>
  375. <dt><span class="paramLabel">Parameters:</span></dt>
  376. <dd><code>bts</code> - byte buffer</dd>
  377. <dd><code>st</code> - start offset within the buffer</dd>
  378. <dd><code>end</code> - maximum number of bytes to read</dd>
  379. <dt><span class="returnLabel">Returns:</span></dt>
  380. <dd>number of bytes read, or -1 if the stream has ended</dd>
  381. <dt><span class="throwsLabel">Throws:</span></dt>
  382. <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 the stream could not be read (or written)</dd>
  383. </dl>
  384. </li>
  385. </ul>
  386. <a name="read-byte:A-">
  387. <!-- -->
  388. </a>
  389. <ul class="blockListLast">
  390. <li class="blockList">
  391. <h4>read</h4>
  392. <pre>public&nbsp;int&nbsp;read(byte[]&nbsp;bts)
  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">Reads bytes from the proxied input stream and writes the read bytes
  395. to the associated output stream.</div>
  396. <dl>
  397. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  398. <dd><code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#read-byte:A-">read</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></code></dd>
  399. <dt><span class="paramLabel">Parameters:</span></dt>
  400. <dd><code>bts</code> - byte buffer</dd>
  401. <dt><span class="returnLabel">Returns:</span></dt>
  402. <dd>number of bytes read, or -1 if the stream has ended</dd>
  403. <dt><span class="throwsLabel">Throws:</span></dt>
  404. <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 the stream could not be read (or written)</dd>
  405. </dl>
  406. </li>
  407. </ul>
  408. </li>
  409. </ul>
  410. </li>
  411. </ul>
  412. </div>
  413. </div>
  414. <!-- ========= END OF CLASS DATA ========= -->
  415. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  416. <div class="bottomNav"><a name="navbar.bottom">
  417. <!-- -->
  418. </a>
  419. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  420. <a name="navbar.bottom.firstrow">
  421. <!-- -->
  422. </a>
  423. <ul class="navList" title="Navigation">
  424. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  425. <li><a href="package-summary.html">Package</a></li>
  426. <li class="navBarCell1Rev">Class</li>
  427. <li><a href="class-use/TeeInputStream.html">Use</a></li>
  428. <li><a href="package-tree.html">Tree</a></li>
  429. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  430. <li><a href="../../../../../index-all.html">Index</a></li>
  431. <li><a href="../../../../../help-doc.html">Help</a></li>
  432. </ul>
  433. </div>
  434. <div class="subNav">
  435. <ul class="navList">
  436. <li><a href="../../../../../org/apache/commons/io/input/TailerListenerAdapter.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  437. <li><a href="../../../../../org/apache/commons/io/input/UnixLineEndingInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  438. </ul>
  439. <ul class="navList">
  440. <li><a href="../../../../../index.html?org/apache/commons/io/input/TeeInputStream.html" target="_top">Frames</a></li>
  441. <li><a href="TeeInputStream.html" target="_top">No&nbsp;Frames</a></li>
  442. </ul>
  443. <ul class="navList" id="allclasses_navbar_bottom">
  444. <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  445. </ul>
  446. <div>
  447. <script type="text/javascript"><!--
  448. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  449. if(window==top) {
  450. allClassesLink.style.display = "block";
  451. }
  452. else {
  453. allClassesLink.style.display = "none";
  454. }
  455. //-->
  456. </script>
  457. </div>
  458. <div>
  459. <ul class="subNavList">
  460. <li>Summary:&nbsp;</li>
  461. <li>Nested&nbsp;|&nbsp;</li>
  462. <li><a href="#fields.inherited.from.class.java.io.FilterInputStream">Field</a>&nbsp;|&nbsp;</li>
  463. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  464. <li><a href="#method.summary">Method</a></li>
  465. </ul>
  466. <ul class="subNavList">
  467. <li>Detail:&nbsp;</li>
  468. <li>Field&nbsp;|&nbsp;</li>
  469. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  470. <li><a href="#method.detail">Method</a></li>
  471. </ul>
  472. </div>
  473. <a name="skip.navbar.bottom">
  474. <!-- -->
  475. </a></div>
  476. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  477. <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>
  478. </body>
  479. </html>