亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? internetaddress.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License").  You * may not use this file except in compliance with the License. You can obtain * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html * or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. * Sun designates this particular file as subject to the "Classpath" exception * as provided by Sun in the GPL Version 2 section of the License file that * accompanied this code.  If applicable, add the following below the License * Header, with the fields enclosed by brackets [] replaced by your own * identifying information: "Portions Copyrighted [year] * [name of copyright owner]" * * Contributor(s): * * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license."  If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above.  However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. *//* * @(#)InternetAddress.java	1.49 07/05/04 */package javax.mail.internet;import java.io.UnsupportedEncodingException;import java.net.InetAddress;import java.net.UnknownHostException;import java.util.Vector;import java.util.StringTokenizer;import java.util.Locale;import javax.mail.*;/** * This class represents an Internet email address using the syntax * of <a href="http://www.ietf.org/rfc/rfc822.txt">RFC822</a>. * Typical address syntax is of the form "user@host.domain" or * "Personal Name <user@host.domain>". * * @author Bill Shannon * @author John Mani */public class InternetAddress extends Address implements Cloneable {    protected String address; // email address    /**     * The personal name.     */    protected String personal;    /**     * The RFC 2047 encoded version of the personal name. <p>     *     * This field and the <code>personal</code> field track each     * other, so if a subclass sets one of these fields directly, it     * should set the other to <code>null</code>, so that it is     * suitably recomputed.     */    protected String encodedPersonal;    private static final long serialVersionUID = -7507595530758302903L;    /**     * Default constructor.     */    public InternetAddress() { }    /**     * Constructor. <p>     *     * Parse the given string and create an InternetAddress.     * See the <code>parse</code> method for details of the parsing.     * The address is parsed using "strict" parsing.     * This constructor does <b>not</b> perform the additional     * syntax checks that the     * <code>InternetAddress(String address, boolean strict)</code>     * constructor does when <code>strict</code> is <code>true</code>.     * This constructor is equivalent to     * <code>InternetAddress(address, false)</code>.     *     * @param address	the address in RFC822 format     * @exception	AddressException if the parse failed     */    public InternetAddress(String address) throws AddressException {	// use our address parsing utility routine to parse the string	InternetAddress a[] = parse(address, true);	// if we got back anything other than a single address, it's an error	if (a.length != 1)	    throw new AddressException("Illegal address", address);	/*	 * Now copy the contents of the single address we parsed	 * into the current object, which will be returned from the	 * constructor.	 * XXX - this sure is a round-about way of getting this done.	 */	this.address = a[0].address;	this.personal = a[0].personal;	this.encodedPersonal = a[0].encodedPersonal;    }    /**     * Parse the given string and create an InternetAddress.     * If <code>strict</code> is false, the detailed syntax of the     * address isn't checked.     *     * @param	address		the address in RFC822 format     * @param	strict		enforce RFC822 syntax     * @exception		AddressException if the parse failed     * @since			JavaMail 1.3     */    public InternetAddress(String address, boolean strict)						throws AddressException {	this(address);	if (strict)	    checkAddress(this.address, true, true);    }    /**     * Construct an InternetAddress given the address and personal name.     * The address is assumed to be a syntactically valid RFC822 address.     *     * @param address	the address in RFC822 format     * @param personal	the personal name     */    public InternetAddress(String address, String personal)				throws UnsupportedEncodingException {	this(address, personal, null);    }    /**     * Construct an InternetAddress given the address and personal name.     * The address is assumed to be a syntactically valid RFC822 address.     *     * @param address	the address in RFC822 format     * @param personal	the personal name     * @param charset	the MIME charset for the name     */    public InternetAddress(String address, String personal, String charset)				throws UnsupportedEncodingException {	this.address = address;	setPersonal(personal, charset);    }    /**     * Return a copy of this InternetAddress object.     * @since		JavaMail 1.2     */    public Object clone() {	InternetAddress a = null;	try {	    a = (InternetAddress)super.clone();	} catch (CloneNotSupportedException e) {} // Won't happen	return a;    }    /**     * Return the type of this address. The type of an InternetAddress     * is "rfc822".     */    public String getType() {	return "rfc822";    }    /**     * Set the email address.     *     * @param	address email address     */    public void setAddress(String address) {	this.address = address;    }    /**     * Set the personal name. If the name contains non US-ASCII     * characters, then the name will be encoded using the specified     * charset as per RFC 2047. If the name contains only US-ASCII     * characters, no encoding is done and the name is used as is. <p>     *     * @param	name 	personal name     * @param	charset	MIME charset to be used to encode the name as      *			per RFC 2047     * @see 	#setPersonal(String)     * @exception UnsupportedEncodingException if the charset encoding     *		  fails.     */    public void setPersonal(String name, String charset)				throws UnsupportedEncodingException {	personal = name;	if (name != null)	    encodedPersonal = MimeUtility.encodeWord(name, charset, null);	else	    encodedPersonal = null;    }    /**     * Set the personal name. If the name contains non US-ASCII     * characters, then the name will be encoded using the platform's      * default charset. If the name contains only US-ASCII characters,     * no encoding is done and the name is used as is. <p>     *     * @param	name 	personal name     * @see 	#setPersonal(String name, String charset)     * @exception UnsupportedEncodingException if the charset encoding     *		  fails.     */    public void setPersonal(String name) 		throws UnsupportedEncodingException {	personal = name;	if (name != null)	    encodedPersonal = MimeUtility.encodeWord(name);	else	    encodedPersonal = null;    }    /**     * Get the email address.     * @return	email address     */    public String getAddress() {	return address;    }    /**     * Get the personal name. If the name is encoded as per RFC 2047,     * it is decoded and converted into Unicode. If the decoding or     * conversion fails, the raw data is returned as is.     *     * @return	personal name     */    public String getPersonal() {	if (personal != null)	    return personal;		if (encodedPersonal != null) {	    try {		personal = MimeUtility.decodeText(encodedPersonal);		return personal;	    } catch (Exception ex) {		// 1. ParseException: either its an unencoded string or		//	it can't be parsed		// 2. UnsupportedEncodingException: can't decode it.		return encodedPersonal;	    }	}	// No personal or encodedPersonal, return null	return null;    }    /**     * Convert this address into a RFC 822 / RFC 2047 encoded address.     * The resulting string contains only US-ASCII characters, and     * hence is mail-safe.     *     * @return		possibly encoded address string     */    public String toString() {	if (encodedPersonal == null && personal != null)	    try {		encodedPersonal = MimeUtility.encodeWord(personal);	    } catch (UnsupportedEncodingException ex) { }		if (encodedPersonal != null)	    return quotePhrase(encodedPersonal) + " <" + address + ">";	else if (isGroup() || isSimple())	    return address;	else	    return "<" + address + ">";    }    /**     * Returns a properly formatted address (RFC 822 syntax) of     * Unicode characters.     *        * @return          Unicode address string     * @since           JavaMail 1.2     */      public String toUnicodeString() {	String p = getPersonal();        if (p != null)            return quotePhrase(p) + " <" + address + ">";        else if (isGroup() || isSimple())            return address;        else            return "<" + address + ">";    }    /*     * quotePhrase() quotes the words within a RFC822 phrase.     *     * This is tricky, since a phrase is defined as 1 or more     * RFC822 words, separated by LWSP. Now, a word that contains     * LWSP is supposed to be quoted, and this is exactly what the      * MimeUtility.quote() method does. However, when dealing with     * a phrase, any LWSP encountered can be construed to be the     * separator between words, and not part of the words themselves.     * To deal with this funkiness, we have the below variant of     * MimeUtility.quote(), which essentially ignores LWSP when     * deciding whether to quote a word.     *     * It aint pretty, but it gets the job done :)     */    private static final String rfc822phrase =	HeaderTokenizer.RFC822.replace(' ', '\0').replace('\t', '\0');    private static String quotePhrase(String phrase) {        int len = phrase.length();        boolean needQuoting = false;        for (int i = 0; i < len; i++) {            char c = phrase.charAt(i);            if (c == '"' || c == '\\') {                 // need to escape them and then quote the whole string                StringBuffer sb = new StringBuffer(len + 3);                sb.append('"');                for (int j = 0; j < len; j++) {                    char cc = phrase.charAt(j);                    if (cc == '"' || cc == '\\')                        // Escape the character                        sb.append('\\');                    sb.append(cc);                }                sb.append('"');                return sb.toString();            } else if ((c < 040 && c != '\r' && c != '\n' && c != '\t') || 			c >= 0177 || rfc822phrase.indexOf(c) >= 0)               // These characters cause the string to be quoted                needQuoting = true;        }        if (needQuoting) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费视频| 成人国产精品免费观看动漫 | 日本精品免费观看高清观看| 亚洲一级二级三级在线免费观看| 精品国产乱码久久久久久图片| 色综合久久久久久久久久久| 捆绑调教美女网站视频一区| 亚洲欧美偷拍卡通变态| 久久综合网色—综合色88| 欧美色涩在线第一页| 懂色av噜噜一区二区三区av| 免费成人小视频| 亚洲综合一区二区精品导航| 国产精品美女久久久久久久网站| 欧美高清视频在线高清观看mv色露露十八 | 日韩av高清在线观看| 18成人在线视频| 久久女同性恋中文字幕| 欧美日韩高清一区二区不卡| 一本大道av伊人久久综合| 国产精品66部| 另类中文字幕网| 午夜欧美2019年伦理| 亚洲欧美日韩中文播放| 国产精品乱码一区二三区小蝌蚪| 精品久久久久久最新网址| 7777精品久久久大香线蕉| 日本精品一级二级| 91亚洲精品久久久蜜桃网站 | 欧美少妇xxx| 91麻豆精东视频| 成人黄色av电影| 成人午夜免费视频| 岛国av在线一区| 国产一区二区三区av电影| 麻豆精品一区二区三区| 日韩电影免费在线观看网站| 亚洲国产精品尤物yw在线观看| 亚洲色图欧洲色图| 中文字幕五月欧美| 国产精品久久久久久一区二区三区| www久久精品| 久久久亚洲欧洲日产国码αv| 欧美成人video| 2023国产精品自拍| 久久久精品中文字幕麻豆发布| 精品国产91洋老外米糕| 久久午夜色播影院免费高清| 国产人成一区二区三区影院| 国产午夜精品一区二区| 国产精品视频一二三| 国产精品成人一区二区三区夜夜夜| 国产精品理伦片| 亚洲男人的天堂av| 亚洲高清免费一级二级三级| 视频一区二区不卡| 韩国视频一区二区| 国产成人精品影院| 91网站在线播放| 精品婷婷伊人一区三区三| 91精品国产美女浴室洗澡无遮挡| 91精品国产综合久久婷婷香蕉| 日韩亚洲欧美综合| 国产午夜精品美女毛片视频| 中文字幕中文字幕一区二区| 亚洲一区二区三区四区在线观看| 日韩在线观看一区二区| 国产一区视频导航| www.日韩精品| 欧美人妖巨大在线| 精品福利一区二区三区免费视频| 国产欧美va欧美不卡在线| 亚洲免费在线看| 日本女人一区二区三区| 国产一区二区三区精品视频| 97se亚洲国产综合自在线不卡| 欧美日韩一卡二卡三卡| 精品久久一二三区| 亚洲女与黑人做爰| 麻豆成人综合网| 99精品视频免费在线观看| 3d成人动漫网站| 中文av一区二区| 亚洲妇熟xx妇色黄| 国产suv精品一区二区6| 欧美性大战久久久久久久蜜臀| 日韩一级免费一区| 一区精品在线播放| 蜜臀精品一区二区三区在线观看| 成人午夜视频网站| 日韩欧美123| 自拍偷拍欧美激情| 国产主播一区二区三区| 色激情天天射综合网| 久久奇米777| 午夜欧美2019年伦理| 成人午夜免费视频| 日韩免费高清av| 亚洲精品乱码久久久久久黑人 | 欧美日韩精品综合在线| 久久久久高清精品| 亚洲国产va精品久久久不卡综合| 高清在线不卡av| 91精品国产综合久久香蕉的特点 | 蜜桃一区二区三区在线观看| 97精品国产露脸对白| 精品不卡在线视频| 日韩黄色片在线观看| 色美美综合视频| 欧美国产精品一区| 捆绑紧缚一区二区三区视频| 欧美三级中文字幕在线观看| 国产精品女同一区二区三区| 黑人巨大精品欧美一区| 91麻豆精品国产91久久久久久久久| 亚洲欧美激情视频在线观看一区二区三区| 久久99蜜桃精品| 欧美一级黄色录像| 婷婷中文字幕一区三区| 91久久精品一区二区三区| 国产精品不卡视频| 不卡欧美aaaaa| 国产精品区一区二区三| 韩国av一区二区三区在线观看| 欧美人动与zoxxxx乱| 亚洲自拍偷拍网站| 在线国产电影不卡| 亚洲人精品一区| 成人av小说网| 中文字幕在线观看一区| 成人午夜大片免费观看| 中文字幕久久午夜不卡| 国产乱子轮精品视频| 久久这里只有精品首页| 国产一本一道久久香蕉| 欧美精品一区男女天堂| 激情综合色播激情啊| 26uuu久久综合| 国产一区二区精品久久| 久久先锋资源网| 福利一区二区在线| 国产精品你懂的在线欣赏| 99久久综合色| 亚洲婷婷国产精品电影人久久| 91玉足脚交白嫩脚丫在线播放| 亚洲视频一二区| 色综合天天性综合| 亚洲一区成人在线| 欧美日韩一二三| 首页国产欧美久久| 欧美大片免费久久精品三p| 久久99精品国产.久久久久| 亚洲精品在线观看网站| 国产成人午夜99999| 亚洲天堂精品在线观看| 欧美三级午夜理伦三级中视频| 亚洲成a天堂v人片| 日韩免费高清av| 国产东北露脸精品视频| 亚洲人成7777| 91精品综合久久久久久| 国产麻豆精品在线| 亚洲免费看黄网站| 91麻豆精品国产自产在线| 国产精品一卡二| 亚洲手机成人高清视频| 这里是久久伊人| 国产成人精品影视| 亚洲韩国精品一区| 欧美电影免费观看高清完整版在| 国产激情视频一区二区在线观看 | 麻豆高清免费国产一区| 日本一二三不卡| 色噜噜久久综合| 日韩精品电影在线| 中文字幕国产一区二区| 在线视频观看一区| 男女男精品视频| 国产精品久久久99| 欧美丰满美乳xxx高潮www| 国产九色sp调教91| 一区二区免费在线| 精品国产凹凸成av人网站| 99久久精品国产网站| 秋霞午夜鲁丝一区二区老狼| 国产精品久久久久久妇女6080| 欧美精品乱人伦久久久久久| 国产福利精品一区二区| 婷婷丁香久久五月婷婷| 国产精品污www在线观看| 欧美美女网站色| 成人国产亚洲欧美成人综合网| 日日摸夜夜添夜夜添精品视频 | 美国毛片一区二区| 亚洲裸体在线观看| 精品动漫一区二区三区在线观看| 在线免费观看不卡av| 成人黄色在线网站| 久久丁香综合五月国产三级网站| 亚洲一区二区三区四区不卡|