Subversion Repositories javautils

Rev

Rev 8 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 9
Line 10... Line 10...
10
 * @author Daniel Marschall
10
 * @author Daniel Marschall
11
 *
11
 *
12
 */
12
 */
13
public class EMailPreprocessor {
13
public class EMailPreprocessor {
14
       
14
       
15
        public static String preprocess(String eMailAddress) throws InvalidMailAddressException {
15
        public static String preprocess(String eMailAddress) {
16
                EMailAddress email = new EMailAddress(eMailAddress);
16
                EMailAddress email = new EMailAddress(eMailAddress);
17
               
17
               
18
                return email.getMailAddressPunycodedDomain();
18
                return email.getMailAddressPunycodedDomain();
19
        }
19
        }
20
       
20