| Revision | 94 (tree) |
|---|---|
| Time | 2015-08-24 01:40:45 |
| Author | t_nakayama1971 |
(empty log message)
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | import java.io.InputStream; |
| 6 | 6 | import java.io.OutputStream; |
| 7 | 7 | import java.io.UnsupportedEncodingException; |
| 8 | -import java.nio.charset.Charset; | |
| 9 | 8 | import java.sql.Connection; |
| 10 | 9 | import java.sql.PreparedStatement; |
| 11 | 10 | import java.sql.ResultSet; |
| @@ -504,9 +503,9 @@ | ||
| 504 | 503 | int loc = address[i].lastIndexOf(':'); |
| 505 | 504 | if (0 <= loc) { |
| 506 | 505 | ret[i] = new InternetAddressEx(address[i].substring(0, loc), |
| 507 | - address[i].substring(loc + ":".length()), MojiUtil.CHARSET_XJIS); | |
| 506 | + address[i].substring(loc + ":".length())); | |
| 508 | 507 | } else { |
| 509 | - ret[i] = new InternetAddressEx(address[i]); | |
| 508 | + ret[i] = new InternetAddress(address[i]); | |
| 510 | 509 | } |
| 511 | 510 | } |
| 512 | 511 | return ret; |
| @@ -523,22 +522,12 @@ | ||
| 523 | 522 | /** |
| 524 | 523 | * コンストラクタ |
| 525 | 524 | * @param ads アドレス |
| 526 | - * @throws AddressException アドレス例外 | |
| 527 | - */ | |
| 528 | - public InternetAddressEx(final String ads) throws AddressException { | |
| 529 | - super(ads); | |
| 530 | - } | |
| 531 | - | |
| 532 | - /** | |
| 533 | - * コンストラクタ | |
| 534 | - * @param ads アドレス | |
| 535 | 525 | * @param psn 人物 |
| 536 | - * @param charset エンコード | |
| 537 | 526 | * @throws UnsupportedEncodingException 例外 |
| 538 | 527 | */ |
| 539 | - public InternetAddressEx(final String ads, final String psn, | |
| 540 | - final Charset charset) throws UnsupportedEncodingException { | |
| 541 | - super(ads, psn, charset.name()); | |
| 528 | + public InternetAddressEx(final String ads, final String psn) | |
| 529 | + throws UnsupportedEncodingException { | |
| 530 | + super(ads, psn, MojiUtil.CHARSET_XJIS.name()); | |
| 542 | 531 | if (super.encodedPersonal != null) { |
| 543 | 532 | super.encodedPersonal = super.encodedPersonal.replace( |
| 544 | 533 | MojiUtil.CHARSET_XJIS.name(), MojiUtil.CHARSET_JIS.name()); |