(InputStream is)
| 464 | } |
| 465 | |
| 466 | private final Reader inputStreamReader(InputStream is) throws UnsupportedEncodingException { |
| 467 | if (charsetName != null) |
| 468 | return new InputStreamReader(is, charsetName); |
| 469 | else if (charset != null) |
| 470 | return new InputStreamReader(is, charset); |
| 471 | else if (charsetDecoder != null) |
| 472 | return new InputStreamReader(is, charsetDecoder); |
| 473 | else |
| 474 | return new InputStreamReader(is); |
| 475 | } |
| 476 | |
| 477 | @Override |
| 478 | public String toString() { |