|
27 | 27 | * to increase reusability, because FilterWriter changes the |
28 | 28 | * methods being called, such as write(char[]) to write(char[], int, int) |
29 | 29 | * and write(String) to write(String, int, int). |
30 | | - * |
31 | 30 | */ |
32 | 31 | public class ProxyWriter extends FilterWriter { |
33 | 32 |
|
@@ -107,14 +106,14 @@ public Writer append(final CharSequence csq) throws IOException { |
107 | 106 |
|
108 | 107 | /** |
109 | 108 | * Invokes the delegate's <code>write(int)</code> method. |
110 | | - * @param idx the character to write |
| 109 | + * @param c the character to write |
111 | 110 | * @throws IOException if an I/O error occurs |
112 | 111 | */ |
113 | 112 | @Override |
114 | | - public void write(final int idx) throws IOException { |
| 113 | + public void write(final int c) throws IOException { |
115 | 114 | try { |
116 | 115 | beforeWrite(1); |
117 | | - out.write(idx); |
| 116 | + out.write(c); |
118 | 117 | afterWrite(1); |
119 | 118 | } catch (final IOException e) { |
120 | 119 | handleIOException(e); |
@@ -144,16 +143,16 @@ public void write(final char[] chr) throws IOException { |
144 | 143 |
|
145 | 144 | /** |
146 | 145 | * Invokes the delegate's <code>write(char[], int, int)</code> method. |
147 | | - * @param chr the characters to write |
148 | | - * @param st The start offset |
| 146 | + * @param cbuf the characters to write |
| 147 | + * @param off The start offset |
149 | 148 | * @param len The number of characters to write |
150 | 149 | * @throws IOException if an I/O error occurs |
151 | 150 | */ |
152 | 151 | @Override |
153 | | - public void write(final char[] chr, final int st, final int len) throws IOException { |
| 152 | + public void write(final char[] cbuf, final int off, final int len) throws IOException { |
154 | 153 | try { |
155 | 154 | beforeWrite(len); |
156 | | - out.write(chr, st, len); |
| 155 | + out.write(cbuf, off, len); |
157 | 156 | afterWrite(len); |
158 | 157 | } catch (final IOException e) { |
159 | 158 | handleIOException(e); |
@@ -184,15 +183,15 @@ public void write(final String str) throws IOException { |
184 | 183 | /** |
185 | 184 | * Invokes the delegate's <code>write(String)</code> method. |
186 | 185 | * @param str the string to write |
187 | | - * @param st The start offset |
| 186 | + * @param off The start offset |
188 | 187 | * @param len The number of characters to write |
189 | 188 | * @throws IOException if an I/O error occurs |
190 | 189 | */ |
191 | 190 | @Override |
192 | | - public void write(final String str, final int st, final int len) throws IOException { |
| 191 | + public void write(final String str, final int off, final int len) throws IOException { |
193 | 192 | try { |
194 | 193 | beforeWrite(len); |
195 | | - out.write(str, st, len); |
| 194 | + out.write(str, off, len); |
196 | 195 | afterWrite(len); |
197 | 196 | } catch (final IOException e) { |
198 | 197 | handleIOException(e); |
|
0 commit comments