package validate;

import java.io.IOException;
import java.util.Properties;

import common.MessageStream;

/*メールアドレス重複チェッククラス*/
public class S002 {

	public  String validate(String mail) throws IOException {

		/*メッセージ取得*/
		MessageStream me = new MessageStream();
		Properties inMessage = me.loadUtf8Properties("/Message.properties");

		/*SOL実行(未)*/

		if(mail.equals("a@gmail.com")){
			return  inMessage.getProperty("M01");
			}
			return mail;
		}
	}