88 |
*/ |
*/ |
89 |
public class InputStreamReader extends Reader |
public class InputStreamReader extends Reader |
90 |
{ |
{ |
91 |
/* |
/* |
92 |
* This is the byte-character decoder class that does the reading and |
* This is the byte-character decoder class that does the reading and |
93 |
* translation of bytes from the underlying stream. |
* translation of bytes from the underlying stream. |
94 |
*/ |
*/ |
169 |
} |
} |
170 |
|
|
171 |
/** |
/** |
172 |
* This method reads up to <code>len</code> characters from the stream into |
* This method reads up to <code>length</code> characters from the stream into |
173 |
* the specified array starting at index <code>offset</code> into the |
* the specified array starting at index <code>offset</code> into the |
174 |
* array. |
* array. |
175 |
* |
* |
176 |
* @param buf The character array to recieve the data read |
* @param buf The character array to recieve the data read |
177 |
* @param offset The offset into the array to start storing characters |
* @param offset The offset into the array to start storing characters |
178 |
* @param len The requested number of characters to read. |
* @param length The requested number of characters to read. |
179 |
* |
* |
180 |
* @return The actual number of characters read, or -1 if end of stream. |
* @return The actual number of characters read, or -1 if end of stream. |
181 |
* |
* |
182 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
183 |
*/ |
*/ |
184 |
public int read(char[] buf, int offset, int len) throws IOException |
public int read (char[] buf, int offset, int length) throws IOException |
185 |
{ |
{ |
186 |
return(in.read(buf, offset, len)); |
return in.read(buf, offset, length); |
187 |
} |
} |
188 |
|
|
189 |
/** |
/** |