FileWriterWithEncoding.html 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  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>FileWriterWithEncoding (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="FileWriterWithEncoding (Apache Commons IO 2.6 API)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":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/FileWriterWithEncoding.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/output/DemuxOutputStream.html" title="class in org.apache.commons.io.output"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../../org/apache/commons/io/output/LockableFileWriter.html" title="class in org.apache.commons.io.output"><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/output/FileWriterWithEncoding.html" target="_top">Frames</a></li>
  57. <li><a href="FileWriterWithEncoding.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.Writer">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.output</div>
  96. <h2 title="Class FileWriterWithEncoding" class="title">Class FileWriterWithEncoding</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/Writer.html?is-external=true" title="class or interface in java.io">java.io.Writer</a></li>
  104. <li>
  105. <ul class="inheritance">
  106. <li>org.apache.commons.io.output.FileWriterWithEncoding</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/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</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>
  118. </dl>
  119. <hr>
  120. <br>
  121. <pre>public class <span class="typeNameLabel">FileWriterWithEncoding</span>
  122. extends <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></pre>
  123. <div class="block">Writer of files that allows the encoding to be set.
  124. <p>
  125. This class provides a simple alternative to <code>FileWriter</code>
  126. that allows an encoding to be set. Unfortunately, it cannot subclass
  127. <code>FileWriter</code>.
  128. <p>
  129. By default, the file will be overwritten, but this may be changed to append.
  130. <p>
  131. The encoding must be specified using either the name of the <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a>,
  132. the <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a>, or a <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset"><code>CharsetEncoder</code></a>. If the default encoding
  133. is required then use the <a href="http://docs.oracle.com/javase/7/docs/api/java/io/FileWriter.html?is-external=true" title="class or interface in java.io"><code>FileWriter</code></a> directly, rather than
  134. this implementation.
  135. <p></div>
  136. <dl>
  137. <dt><span class="simpleTagLabel">Since:</span></dt>
  138. <dd>1.4</dd>
  139. <dt><span class="simpleTagLabel">Version:</span></dt>
  140. <dd>$Id$</dd>
  141. </dl>
  142. </li>
  143. </ul>
  144. </div>
  145. <div class="summary">
  146. <ul class="blockList">
  147. <li class="blockList">
  148. <!-- =========== FIELD SUMMARY =========== -->
  149. <ul class="blockList">
  150. <li class="blockList"><a name="field.summary">
  151. <!-- -->
  152. </a>
  153. <h3>Field Summary</h3>
  154. <ul class="blockList">
  155. <li class="blockList"><a name="fields.inherited.from.class.java.io.Writer">
  156. <!-- -->
  157. </a>
  158. <h3>Fields inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></h3>
  159. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#lock" title="class or interface in java.io">lock</a></code></li>
  160. </ul>
  161. </li>
  162. </ul>
  163. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  164. <ul class="blockList">
  165. <li class="blockList"><a name="constructor.summary">
  166. <!-- -->
  167. </a>
  168. <h3>Constructor Summary</h3>
  169. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  170. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  171. <tr>
  172. <th class="colOne" scope="col">Constructor and Description</th>
  173. </tr>
  174. <tr class="altColor">
  175. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.io.File-java.nio.charset.Charset-">FileWriterWithEncoding</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,
  176. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding)</code>
  177. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  178. </td>
  179. </tr>
  180. <tr class="rowColor">
  181. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.io.File-java.nio.charset.Charset-boolean-">FileWriterWithEncoding</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,
  182. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding,
  183. boolean&nbsp;append)</code>
  184. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  185. </td>
  186. </tr>
  187. <tr class="altColor">
  188. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.io.File-java.nio.charset.CharsetEncoder-">FileWriterWithEncoding</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,
  189. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding)</code>
  190. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  191. </td>
  192. </tr>
  193. <tr class="rowColor">
  194. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.io.File-java.nio.charset.CharsetEncoder-boolean-">FileWriterWithEncoding</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,
  195. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding,
  196. boolean&nbsp;append)</code>
  197. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  198. </td>
  199. </tr>
  200. <tr class="altColor">
  201. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.io.File-java.lang.String-">FileWriterWithEncoding</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,
  202. <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;encoding)</code>
  203. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  204. </td>
  205. </tr>
  206. <tr class="rowColor">
  207. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.io.File-java.lang.String-boolean-">FileWriterWithEncoding</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,
  208. <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;encoding,
  209. boolean&nbsp;append)</code>
  210. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  211. </td>
  212. </tr>
  213. <tr class="altColor">
  214. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.lang.String-java.nio.charset.Charset-">FileWriterWithEncoding</a></span>(<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;filename,
  215. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding)</code>
  216. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  217. </td>
  218. </tr>
  219. <tr class="rowColor">
  220. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.lang.String-java.nio.charset.Charset-boolean-">FileWriterWithEncoding</a></span>(<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;filename,
  221. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding,
  222. boolean&nbsp;append)</code>
  223. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  224. </td>
  225. </tr>
  226. <tr class="altColor">
  227. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.lang.String-java.nio.charset.CharsetEncoder-">FileWriterWithEncoding</a></span>(<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;filename,
  228. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding)</code>
  229. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  230. </td>
  231. </tr>
  232. <tr class="rowColor">
  233. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.lang.String-java.nio.charset.CharsetEncoder-boolean-">FileWriterWithEncoding</a></span>(<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;filename,
  234. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding,
  235. boolean&nbsp;append)</code>
  236. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  237. </td>
  238. </tr>
  239. <tr class="altColor">
  240. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.lang.String-java.lang.String-">FileWriterWithEncoding</a></span>(<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;filename,
  241. <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;encoding)</code>
  242. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  243. </td>
  244. </tr>
  245. <tr class="rowColor">
  246. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#FileWriterWithEncoding-java.lang.String-java.lang.String-boolean-">FileWriterWithEncoding</a></span>(<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;filename,
  247. <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;encoding,
  248. boolean&nbsp;append)</code>
  249. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</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/output/FileWriterWithEncoding.html#close--">close</a></span>()</code>
  270. <div class="block">Close the stream.</div>
  271. </td>
  272. </tr>
  273. <tr id="i1" class="rowColor">
  274. <td class="colFirst"><code>void</code></td>
  275. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#flush--">flush</a></span>()</code>
  276. <div class="block">Flush the stream.</div>
  277. </td>
  278. </tr>
  279. <tr id="i2" class="altColor">
  280. <td class="colFirst"><code>void</code></td>
  281. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#write-char:A-">write</a></span>(char[]&nbsp;chr)</code>
  282. <div class="block">Write the characters from an array.</div>
  283. </td>
  284. </tr>
  285. <tr id="i3" class="rowColor">
  286. <td class="colFirst"><code>void</code></td>
  287. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#write-char:A-int-int-">write</a></span>(char[]&nbsp;chr,
  288. int&nbsp;st,
  289. int&nbsp;end)</code>
  290. <div class="block">Write the specified characters from an array.</div>
  291. </td>
  292. </tr>
  293. <tr id="i4" class="altColor">
  294. <td class="colFirst"><code>void</code></td>
  295. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#write-int-">write</a></span>(int&nbsp;idx)</code>
  296. <div class="block">Write a character.</div>
  297. </td>
  298. </tr>
  299. <tr id="i5" class="rowColor">
  300. <td class="colFirst"><code>void</code></td>
  301. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#write-java.lang.String-">write</a></span>(<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;str)</code>
  302. <div class="block">Write the characters from a string.</div>
  303. </td>
  304. </tr>
  305. <tr id="i6" class="altColor">
  306. <td class="colFirst"><code>void</code></td>
  307. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/output/FileWriterWithEncoding.html#write-java.lang.String-int-int-">write</a></span>(<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;str,
  308. int&nbsp;st,
  309. int&nbsp;end)</code>
  310. <div class="block">Write the specified characters from a string.</div>
  311. </td>
  312. </tr>
  313. </table>
  314. <ul class="blockList">
  315. <li class="blockList"><a name="methods.inherited.from.class.java.io.Writer">
  316. <!-- -->
  317. </a>
  318. <h3>Methods inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></h3>
  319. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#append-char-" title="class or interface in java.io">append</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#append-java.lang.CharSequence-" title="class or interface in java.io">append</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#append-java.lang.CharSequence-int-int-" title="class or interface in java.io">append</a></code></li>
  320. </ul>
  321. <ul class="blockList">
  322. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  323. <!-- -->
  324. </a>
  325. <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>
  326. <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>
  327. </ul>
  328. </li>
  329. </ul>
  330. </li>
  331. </ul>
  332. </div>
  333. <div class="details">
  334. <ul class="blockList">
  335. <li class="blockList">
  336. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  337. <ul class="blockList">
  338. <li class="blockList"><a name="constructor.detail">
  339. <!-- -->
  340. </a>
  341. <h3>Constructor Detail</h3>
  342. <a name="FileWriterWithEncoding-java.lang.String-java.lang.String-">
  343. <!-- -->
  344. </a>
  345. <ul class="blockList">
  346. <li class="blockList">
  347. <h4>FileWriterWithEncoding</h4>
  348. <pre>public&nbsp;FileWriterWithEncoding(<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;filename,
  349. <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;encoding)
  350. 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>
  351. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  352. <dl>
  353. <dt><span class="paramLabel">Parameters:</span></dt>
  354. <dd><code>filename</code> - the name of the file to write to, not null</dd>
  355. <dd><code>encoding</code> - the encoding to use, not null</dd>
  356. <dt><span class="throwsLabel">Throws:</span></dt>
  357. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file name or encoding is null</dd>
  358. <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> - in case of an I/O error</dd>
  359. </dl>
  360. </li>
  361. </ul>
  362. <a name="FileWriterWithEncoding-java.lang.String-java.lang.String-boolean-">
  363. <!-- -->
  364. </a>
  365. <ul class="blockList">
  366. <li class="blockList">
  367. <h4>FileWriterWithEncoding</h4>
  368. <pre>public&nbsp;FileWriterWithEncoding(<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;filename,
  369. <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;encoding,
  370. boolean&nbsp;append)
  371. 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>
  372. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  373. <dl>
  374. <dt><span class="paramLabel">Parameters:</span></dt>
  375. <dd><code>filename</code> - the name of the file to write to, not null</dd>
  376. <dd><code>encoding</code> - the encoding to use, not null</dd>
  377. <dd><code>append</code> - true if content should be appended, false to overwrite</dd>
  378. <dt><span class="throwsLabel">Throws:</span></dt>
  379. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file name or encoding is null</dd>
  380. <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> - in case of an I/O error</dd>
  381. </dl>
  382. </li>
  383. </ul>
  384. <a name="FileWriterWithEncoding-java.lang.String-java.nio.charset.Charset-">
  385. <!-- -->
  386. </a>
  387. <ul class="blockList">
  388. <li class="blockList">
  389. <h4>FileWriterWithEncoding</h4>
  390. <pre>public&nbsp;FileWriterWithEncoding(<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;filename,
  391. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding)
  392. 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>
  393. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  394. <dl>
  395. <dt><span class="paramLabel">Parameters:</span></dt>
  396. <dd><code>filename</code> - the name of the file to write to, not null</dd>
  397. <dd><code>encoding</code> - the encoding to use, not null</dd>
  398. <dt><span class="throwsLabel">Throws:</span></dt>
  399. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file name or encoding is null</dd>
  400. <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> - in case of an I/O error</dd>
  401. </dl>
  402. </li>
  403. </ul>
  404. <a name="FileWriterWithEncoding-java.lang.String-java.nio.charset.Charset-boolean-">
  405. <!-- -->
  406. </a>
  407. <ul class="blockList">
  408. <li class="blockList">
  409. <h4>FileWriterWithEncoding</h4>
  410. <pre>public&nbsp;FileWriterWithEncoding(<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;filename,
  411. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding,
  412. boolean&nbsp;append)
  413. 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>
  414. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  415. <dl>
  416. <dt><span class="paramLabel">Parameters:</span></dt>
  417. <dd><code>filename</code> - the name of the file to write to, not null</dd>
  418. <dd><code>encoding</code> - the encoding to use, not null</dd>
  419. <dd><code>append</code> - true if content should be appended, false to overwrite</dd>
  420. <dt><span class="throwsLabel">Throws:</span></dt>
  421. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file name or encoding is null</dd>
  422. <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> - in case of an I/O error</dd>
  423. </dl>
  424. </li>
  425. </ul>
  426. <a name="FileWriterWithEncoding-java.lang.String-java.nio.charset.CharsetEncoder-">
  427. <!-- -->
  428. </a>
  429. <ul class="blockList">
  430. <li class="blockList">
  431. <h4>FileWriterWithEncoding</h4>
  432. <pre>public&nbsp;FileWriterWithEncoding(<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;filename,
  433. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding)
  434. 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>
  435. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  436. <dl>
  437. <dt><span class="paramLabel">Parameters:</span></dt>
  438. <dd><code>filename</code> - the name of the file to write to, not null</dd>
  439. <dd><code>encoding</code> - the encoding to use, not null</dd>
  440. <dt><span class="throwsLabel">Throws:</span></dt>
  441. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file name or encoding is null</dd>
  442. <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> - in case of an I/O error</dd>
  443. </dl>
  444. </li>
  445. </ul>
  446. <a name="FileWriterWithEncoding-java.lang.String-java.nio.charset.CharsetEncoder-boolean-">
  447. <!-- -->
  448. </a>
  449. <ul class="blockList">
  450. <li class="blockList">
  451. <h4>FileWriterWithEncoding</h4>
  452. <pre>public&nbsp;FileWriterWithEncoding(<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;filename,
  453. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding,
  454. boolean&nbsp;append)
  455. 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>
  456. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  457. <dl>
  458. <dt><span class="paramLabel">Parameters:</span></dt>
  459. <dd><code>filename</code> - the name of the file to write to, not null</dd>
  460. <dd><code>encoding</code> - the encoding to use, not null</dd>
  461. <dd><code>append</code> - true if content should be appended, false to overwrite</dd>
  462. <dt><span class="throwsLabel">Throws:</span></dt>
  463. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file name or encoding is null</dd>
  464. <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> - in case of an I/O error</dd>
  465. </dl>
  466. </li>
  467. </ul>
  468. <a name="FileWriterWithEncoding-java.io.File-java.lang.String-">
  469. <!-- -->
  470. </a>
  471. <ul class="blockList">
  472. <li class="blockList">
  473. <h4>FileWriterWithEncoding</h4>
  474. <pre>public&nbsp;FileWriterWithEncoding(<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,
  475. <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;encoding)
  476. 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>
  477. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  478. <dl>
  479. <dt><span class="paramLabel">Parameters:</span></dt>
  480. <dd><code>file</code> - the file to write to, not null</dd>
  481. <dd><code>encoding</code> - the encoding to use, not null</dd>
  482. <dt><span class="throwsLabel">Throws:</span></dt>
  483. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file or encoding is null</dd>
  484. <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> - in case of an I/O error</dd>
  485. </dl>
  486. </li>
  487. </ul>
  488. <a name="FileWriterWithEncoding-java.io.File-java.lang.String-boolean-">
  489. <!-- -->
  490. </a>
  491. <ul class="blockList">
  492. <li class="blockList">
  493. <h4>FileWriterWithEncoding</h4>
  494. <pre>public&nbsp;FileWriterWithEncoding(<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,
  495. <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;encoding,
  496. boolean&nbsp;append)
  497. 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>
  498. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  499. <dl>
  500. <dt><span class="paramLabel">Parameters:</span></dt>
  501. <dd><code>file</code> - the file to write to, not null</dd>
  502. <dd><code>encoding</code> - the encoding to use, not null</dd>
  503. <dd><code>append</code> - true if content should be appended, false to overwrite</dd>
  504. <dt><span class="throwsLabel">Throws:</span></dt>
  505. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file or encoding is null</dd>
  506. <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> - in case of an I/O error</dd>
  507. </dl>
  508. </li>
  509. </ul>
  510. <a name="FileWriterWithEncoding-java.io.File-java.nio.charset.Charset-">
  511. <!-- -->
  512. </a>
  513. <ul class="blockList">
  514. <li class="blockList">
  515. <h4>FileWriterWithEncoding</h4>
  516. <pre>public&nbsp;FileWriterWithEncoding(<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,
  517. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding)
  518. 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>
  519. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  520. <dl>
  521. <dt><span class="paramLabel">Parameters:</span></dt>
  522. <dd><code>file</code> - the file to write to, not null</dd>
  523. <dd><code>encoding</code> - the encoding to use, not null</dd>
  524. <dt><span class="throwsLabel">Throws:</span></dt>
  525. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file or encoding is null</dd>
  526. <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> - in case of an I/O error</dd>
  527. </dl>
  528. </li>
  529. </ul>
  530. <a name="FileWriterWithEncoding-java.io.File-java.nio.charset.Charset-boolean-">
  531. <!-- -->
  532. </a>
  533. <ul class="blockList">
  534. <li class="blockList">
  535. <h4>FileWriterWithEncoding</h4>
  536. <pre>public&nbsp;FileWriterWithEncoding(<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,
  537. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;encoding,
  538. boolean&nbsp;append)
  539. 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>
  540. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  541. <dl>
  542. <dt><span class="paramLabel">Parameters:</span></dt>
  543. <dd><code>file</code> - the file to write to, not null</dd>
  544. <dd><code>encoding</code> - the encoding to use, not null</dd>
  545. <dd><code>append</code> - true if content should be appended, false to overwrite</dd>
  546. <dt><span class="throwsLabel">Throws:</span></dt>
  547. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file or encoding is null</dd>
  548. <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> - in case of an I/O error</dd>
  549. </dl>
  550. </li>
  551. </ul>
  552. <a name="FileWriterWithEncoding-java.io.File-java.nio.charset.CharsetEncoder-">
  553. <!-- -->
  554. </a>
  555. <ul class="blockList">
  556. <li class="blockList">
  557. <h4>FileWriterWithEncoding</h4>
  558. <pre>public&nbsp;FileWriterWithEncoding(<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,
  559. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding)
  560. 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>
  561. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  562. <dl>
  563. <dt><span class="paramLabel">Parameters:</span></dt>
  564. <dd><code>file</code> - the file to write to, not null</dd>
  565. <dd><code>encoding</code> - the encoding to use, not null</dd>
  566. <dt><span class="throwsLabel">Throws:</span></dt>
  567. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file or encoding is null</dd>
  568. <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> - in case of an I/O error</dd>
  569. </dl>
  570. </li>
  571. </ul>
  572. <a name="FileWriterWithEncoding-java.io.File-java.nio.charset.CharsetEncoder-boolean-">
  573. <!-- -->
  574. </a>
  575. <ul class="blockListLast">
  576. <li class="blockList">
  577. <h4>FileWriterWithEncoding</h4>
  578. <pre>public&nbsp;FileWriterWithEncoding(<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,
  579. <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/CharsetEncoder.html?is-external=true" title="class or interface in java.nio.charset">CharsetEncoder</a>&nbsp;encoding,
  580. boolean&nbsp;append)
  581. 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>
  582. <div class="block">Constructs a FileWriterWithEncoding with a file encoding.</div>
  583. <dl>
  584. <dt><span class="paramLabel">Parameters:</span></dt>
  585. <dd><code>file</code> - the file to write to, not null</dd>
  586. <dd><code>encoding</code> - the encoding to use, not null</dd>
  587. <dd><code>append</code> - true if content should be appended, false to overwrite</dd>
  588. <dt><span class="throwsLabel">Throws:</span></dt>
  589. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the file or encoding is null</dd>
  590. <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> - in case of an I/O error</dd>
  591. </dl>
  592. </li>
  593. </ul>
  594. </li>
  595. </ul>
  596. <!-- ============ METHOD DETAIL ========== -->
  597. <ul class="blockList">
  598. <li class="blockList"><a name="method.detail">
  599. <!-- -->
  600. </a>
  601. <h3>Method Detail</h3>
  602. <a name="write-int-">
  603. <!-- -->
  604. </a>
  605. <ul class="blockList">
  606. <li class="blockList">
  607. <h4>write</h4>
  608. <pre>public&nbsp;void&nbsp;write(int&nbsp;idx)
  609. 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>
  610. <div class="block">Write a character.</div>
  611. <dl>
  612. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  613. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#write-int-" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  614. <dt><span class="paramLabel">Parameters:</span></dt>
  615. <dd><code>idx</code> - the character to write</dd>
  616. <dt><span class="throwsLabel">Throws:</span></dt>
  617. <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>
  618. </dl>
  619. </li>
  620. </ul>
  621. <a name="write-char:A-">
  622. <!-- -->
  623. </a>
  624. <ul class="blockList">
  625. <li class="blockList">
  626. <h4>write</h4>
  627. <pre>public&nbsp;void&nbsp;write(char[]&nbsp;chr)
  628. 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>
  629. <div class="block">Write the characters from an array.</div>
  630. <dl>
  631. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  632. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#write-char:A-" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  633. <dt><span class="paramLabel">Parameters:</span></dt>
  634. <dd><code>chr</code> - the characters to write</dd>
  635. <dt><span class="throwsLabel">Throws:</span></dt>
  636. <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>
  637. </dl>
  638. </li>
  639. </ul>
  640. <a name="write-char:A-int-int-">
  641. <!-- -->
  642. </a>
  643. <ul class="blockList">
  644. <li class="blockList">
  645. <h4>write</h4>
  646. <pre>public&nbsp;void&nbsp;write(char[]&nbsp;chr,
  647. int&nbsp;st,
  648. int&nbsp;end)
  649. 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>
  650. <div class="block">Write the specified characters from an array.</div>
  651. <dl>
  652. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  653. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#write-char:A-int-int-" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  654. <dt><span class="paramLabel">Parameters:</span></dt>
  655. <dd><code>chr</code> - the characters to write</dd>
  656. <dd><code>st</code> - The start offset</dd>
  657. <dd><code>end</code> - The number of characters to write</dd>
  658. <dt><span class="throwsLabel">Throws:</span></dt>
  659. <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>
  660. </dl>
  661. </li>
  662. </ul>
  663. <a name="write-java.lang.String-">
  664. <!-- -->
  665. </a>
  666. <ul class="blockList">
  667. <li class="blockList">
  668. <h4>write</h4>
  669. <pre>public&nbsp;void&nbsp;write(<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;str)
  670. 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>
  671. <div class="block">Write the characters from a string.</div>
  672. <dl>
  673. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  674. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#write-java.lang.String-" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  675. <dt><span class="paramLabel">Parameters:</span></dt>
  676. <dd><code>str</code> - the string to write</dd>
  677. <dt><span class="throwsLabel">Throws:</span></dt>
  678. <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>
  679. </dl>
  680. </li>
  681. </ul>
  682. <a name="write-java.lang.String-int-int-">
  683. <!-- -->
  684. </a>
  685. <ul class="blockList">
  686. <li class="blockList">
  687. <h4>write</h4>
  688. <pre>public&nbsp;void&nbsp;write(<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;str,
  689. int&nbsp;st,
  690. int&nbsp;end)
  691. 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>
  692. <div class="block">Write the specified characters from a string.</div>
  693. <dl>
  694. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  695. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#write-java.lang.String-int-int-" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  696. <dt><span class="paramLabel">Parameters:</span></dt>
  697. <dd><code>str</code> - the string to write</dd>
  698. <dd><code>st</code> - The start offset</dd>
  699. <dd><code>end</code> - The number of characters to write</dd>
  700. <dt><span class="throwsLabel">Throws:</span></dt>
  701. <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>
  702. </dl>
  703. </li>
  704. </ul>
  705. <a name="flush--">
  706. <!-- -->
  707. </a>
  708. <ul class="blockList">
  709. <li class="blockList">
  710. <h4>flush</h4>
  711. <pre>public&nbsp;void&nbsp;flush()
  712. 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>
  713. <div class="block">Flush the stream.</div>
  714. <dl>
  715. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  716. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true#flush--" title="class or interface in java.io">flush</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a></code></dd>
  717. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  718. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true#flush--" title="class or interface in java.io">flush</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  719. <dt><span class="throwsLabel">Throws:</span></dt>
  720. <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>
  721. </dl>
  722. </li>
  723. </ul>
  724. <a name="close--">
  725. <!-- -->
  726. </a>
  727. <ul class="blockListLast">
  728. <li class="blockList">
  729. <h4>close</h4>
  730. <pre>public&nbsp;void&nbsp;close()
  731. 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>
  732. <div class="block">Close the stream.</div>
  733. <dl>
  734. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  735. <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>
  736. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  737. <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>
  738. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  739. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Writer.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/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
  740. <dt><span class="throwsLabel">Throws:</span></dt>
  741. <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>
  742. </dl>
  743. </li>
  744. </ul>
  745. </li>
  746. </ul>
  747. </li>
  748. </ul>
  749. </div>
  750. </div>
  751. <!-- ========= END OF CLASS DATA ========= -->
  752. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  753. <div class="bottomNav"><a name="navbar.bottom">
  754. <!-- -->
  755. </a>
  756. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  757. <a name="navbar.bottom.firstrow">
  758. <!-- -->
  759. </a>
  760. <ul class="navList" title="Navigation">
  761. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  762. <li><a href="package-summary.html">Package</a></li>
  763. <li class="navBarCell1Rev">Class</li>
  764. <li><a href="class-use/FileWriterWithEncoding.html">Use</a></li>
  765. <li><a href="package-tree.html">Tree</a></li>
  766. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  767. <li><a href="../../../../../index-all.html">Index</a></li>
  768. <li><a href="../../../../../help-doc.html">Help</a></li>
  769. </ul>
  770. </div>
  771. <div class="subNav">
  772. <ul class="navList">
  773. <li><a href="../../../../../org/apache/commons/io/output/DemuxOutputStream.html" title="class in org.apache.commons.io.output"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  774. <li><a href="../../../../../org/apache/commons/io/output/LockableFileWriter.html" title="class in org.apache.commons.io.output"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  775. </ul>
  776. <ul class="navList">
  777. <li><a href="../../../../../index.html?org/apache/commons/io/output/FileWriterWithEncoding.html" target="_top">Frames</a></li>
  778. <li><a href="FileWriterWithEncoding.html" target="_top">No&nbsp;Frames</a></li>
  779. </ul>
  780. <ul class="navList" id="allclasses_navbar_bottom">
  781. <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  782. </ul>
  783. <div>
  784. <script type="text/javascript"><!--
  785. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  786. if(window==top) {
  787. allClassesLink.style.display = "block";
  788. }
  789. else {
  790. allClassesLink.style.display = "none";
  791. }
  792. //-->
  793. </script>
  794. </div>
  795. <div>
  796. <ul class="subNavList">
  797. <li>Summary:&nbsp;</li>
  798. <li>Nested&nbsp;|&nbsp;</li>
  799. <li><a href="#fields.inherited.from.class.java.io.Writer">Field</a>&nbsp;|&nbsp;</li>
  800. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  801. <li><a href="#method.summary">Method</a></li>
  802. </ul>
  803. <ul class="subNavList">
  804. <li>Detail:&nbsp;</li>
  805. <li>Field&nbsp;|&nbsp;</li>
  806. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  807. <li><a href="#method.detail">Method</a></li>
  808. </ul>
  809. </div>
  810. <a name="skip.navbar.bottom">
  811. <!-- -->
  812. </a></div>
  813. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  814. <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>
  815. </body>
  816. </html>