Subversion Repositories javautils

Rev

Rev 8 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8 daniel-mar 1
package de.viathinksoft.utils.mail;
2
 
3
/**
4
 * This class contains a function which "preproceses an email address. Following
5
 * steps will be performed: 1. The email address will be trimmed (in case of
6
 * user inputs) 2. E-Mail-Addresses with internationalized domain names will be
7
 * converted into ASCII compatible punycode (the local part will be left as it
8
 * is!)
9
 *
10
 * @author Daniel Marschall
11
 *
12
 */
13
public class EMailPreprocessor {
14
 
9 daniel-mar 15
        public static String preprocess(String eMailAddress) {
8 daniel-mar 16
                EMailAddress email = new EMailAddress(eMailAddress);
17
 
18
                return email.getMailAddressPunycodedDomain();
19
        }
20
 
21
        private EMailPreprocessor() {
22
        }
23
 
24
}