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

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

?? urlname.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * 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. *//* * @(#)URLName.java	1.19 07/05/04 */package javax.mail;import java.net.*;import java.io.ByteArrayOutputStream;import java.io.OutputStreamWriter;import java.io.IOException;import java.io.UnsupportedEncodingException;import java.util.BitSet;import java.util.Locale;/** * The name of a URL. This class represents a URL name and also  * provides the basic parsing functionality to parse most internet  * standard URL schemes. <p> * * Note that this class differs from <code>java.net.URL</code>  * in that this class just represents the name of a URL, it does  * not model the connection to a URL. * * @version	1.19, 07/05/04 * @author	Christopher Cotton * @author	Bill Shannon */public class URLName {    /**     * The full version of the URL     */    protected String fullURL;    /**      * The protocol to use (ftp, http, nntp, imap, pop3 ... etc.) .      */    private String protocol;    /**      * The username to use when connecting     */    private String username;    /**      * The password to use when connecting.     */    private String password;    /**      * The host name to which to connect.      */    private String host;    /**     * The host's IP address, used in equals and hashCode.     * Computed on demand.     */    private InetAddress hostAddress;    private boolean hostAddressKnown = false;    /**      * The protocol port to connect to.      */    private int port = -1;    /**      * The specified file name on that host.      */    private String file;    /**      * # reference.      */    private String ref;    /**     * Our hash code.     */    private int hashCode = 0;    /**     * A way to turn off encoding, just in case...     */    private static boolean doEncode = true;    static {	try {	    doEncode = !Boolean.getBoolean("mail.URLName.dontencode");	} catch (Exception ex) {	    // ignore any errors	}    }    /**     * Creates a URLName object from the specified protocol,     * host, port number, file, username, and password. Specifying a port     * number of -1 indicates that the URL should use the default port for     * the protocol.     */    public URLName(	String protocol,	String host,	int port,	String file,	String username,	String password	)    {	this.protocol = protocol;	this.host = host;	this.port = port;	int refStart;	if (file != null && (refStart = file.indexOf('#')) != -1) {	    this.file = file.substring(0, refStart);	    this.ref = file.substring(refStart + 1);	} else {	    this.file = file;	    this.ref = null;	}	this.username = doEncode ? encode(username) : username;	this.password = doEncode ? encode(password) : password;    }    /**     * Construct a URLName from a java.net.URL object.     */    public URLName(URL url) {	this(url.toString());    }    /**     * Construct a URLName from the string.  Parses out all the possible     * information (protocol, host, port, file, username, password).     */    public URLName(String url) {	parseString(url);    }    /**     * Constructs a string representation of this URLName.     */    public String toString() {	if (fullURL == null) {	    // add the "protocol:"	    StringBuffer tempURL = new StringBuffer();	    if (protocol != null) {		tempURL.append(protocol);		tempURL.append(":");	    }	    if (username != null || host != null) {		// add the "//"		tempURL.append("//");				// add the user:password@		// XXX - can you just have a password? without a username?		if (username != null) {		    tempURL.append(username);				    if (password != null){			tempURL.append(":");			tempURL.append(password);		    }				    tempURL.append("@");		}	    		// add host		if (host != null) {		    tempURL.append(host);		}	    		// add port (if needed)		if (port != -1) {		    tempURL.append(":");		    tempURL.append(Integer.toString(port));		}		if (file != null)		    tempURL.append("/");	    }	    	    // add the file	    if (file != null) {		tempURL.append(file);	    }	    	    // add the ref	    if (ref != null) {		tempURL.append("#");		tempURL.append(ref);	    }	    // create the fullURL now	    fullURL = tempURL.toString();	}	return fullURL;    }    /**     * Method which does all of the work of parsing the string.     */    protected void parseString(String url) {	// initialize everything in case called from subclass	// (URLName really should be a final class)	protocol = file = ref = host = username = password = null;	port = -1;	int len = url.length();	// find the protocol	// XXX - should check for only legal characters before the colon	// (legal: a-z, A-Z, 0-9, "+", ".", "-")	int protocolEnd = url.indexOf(':');        if (protocolEnd != -1)	    protocol = url.substring(0, protocolEnd);	// is this an Internet standard URL that contains a host name?	if (url.regionMatches(protocolEnd + 1, "//", 0, 2)) {	    // find where the file starts	    String fullhost = null;	    int fileStart = url.indexOf('/', protocolEnd + 3);	    if (fileStart != -1) {		fullhost = url.substring(protocolEnd + 3, fileStart);		if (fileStart + 1 < len)		    file = url.substring(fileStart + 1);		else		    file = "";	    } else		fullhost = url.substring(protocolEnd + 3);	    // examine the fullhost, for username password etc.	    int i = fullhost.indexOf('@');	    if (i != -1) {		String fulluserpass = fullhost.substring(0, i);		fullhost = fullhost.substring(i + 1);		// get user and password		int passindex = fulluserpass.indexOf(':');		if (passindex != -1) {		    username = fulluserpass.substring(0, passindex);		    password = fulluserpass.substring(passindex + 1);		} else {		    username = fulluserpass;		}	    }	    	    // get the port (if there)	    int portindex;	    if (fullhost.length() > 0 && fullhost.charAt(0) == '[') {		// an IPv6 address?		portindex = fullhost.indexOf(':', fullhost.indexOf(']'));	    } else {		portindex = fullhost.indexOf(':');	    }	    if (portindex != -1) {		String portstring = fullhost.substring(portindex + 1);		if (portstring.length() > 0) {		    try {			port = Integer.parseInt(portstring);		    } catch (NumberFormatException nfex) {			port = -1;		    }		}				host = fullhost.substring(0, portindex);	    } else {		host = fullhost;	    }	} else {	    if (protocolEnd + 1 < len)		file = url.substring(protocolEnd + 1);	}	// extract the reference from the file name, if any	int refStart;	if (file != null && (refStart = file.indexOf('#')) != -1) {	    ref = file.substring(refStart + 1);	    file = file.substring(0, refStart);	}    }        /**     * Returns the port number of this URLName.     * Returns -1 if the port is not set.      */    public int getPort() {	return port;    }    /**     * Returns the protocol of this URLName.     * Returns null if this URLName has no protocol.     */    public String getProtocol() {	return protocol;    }    /**     * Returns the file name of this URLName.     * Returns null if this URLName has no file name.     */    public String getFile() {	return file;    }    /**     * Returns the reference of this URLName.     * Returns null if this URLName has no reference.     */    public String getRef() {	return ref;    }    /**     * Returns the host of this URLName.     * Returns null if this URLName has no host.     */    public String getHost() {	return host;    }    /**     * Returns the user name of this URLName.     * Returns null if this URLName has no user name.     */    public String getUsername() {	return doEncode ? decode(username) : username;    }    /**     * Returns the password of this URLName.     * Returns null if this URLName has no password.     */    public String getPassword() {	return doEncode ? decode(password) : password;    }    /**     * Constructs a URL from the URLName.     */    public URL getURL() throws MalformedURLException {        return new URL(getProtocol(), getHost(), getPort(), getFile());    }    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品免费播放| 国产一区在线不卡| 国产伦精品一区二区三区免费 | 欧美日韩亚州综合| 久久久久99精品一区| 污片在线观看一区二区| 99久久综合99久久综合网站| 91精品国产综合久久久久久| 一区二区三区丝袜| 成人福利视频在线| 久久久影院官网| 麻豆91免费观看| 欧美日韩精品电影| 一区二区三区日韩| 91麻豆成人久久精品二区三区| 久久综合色鬼综合色| 日本午夜精品视频在线观看| 欧美日韩综合不卡| 亚洲午夜一区二区| 在线观看欧美日本| 亚洲一区二区视频在线| 91行情网站电视在线观看高清版| 欧美激情一二三区| 国产精品久久久久婷婷| 日韩国产欧美在线观看| 91精品综合久久久久久| 亚洲在线一区二区三区| 欧洲一区二区av| 一区二区免费在线| 欧洲国内综合视频| 亚洲福中文字幕伊人影院| 欧美专区在线观看一区| 一区二区三区国产| 欧美日韩久久一区| 天堂午夜影视日韩欧美一区二区| 欧美丰满高潮xxxx喷水动漫| 欧美aaaaaa午夜精品| 欧美一卡二卡三卡四卡| 视频一区视频二区在线观看| 欧美一区二区在线免费观看| 久久精品国产精品亚洲红杏| 久久久久久久网| 成人av第一页| 亚洲中国最大av网站| 91麻豆精品国产91久久久更新时间| 青青草一区二区三区| 精品理论电影在线| 成人动漫一区二区| 亚洲午夜久久久久| 日韩欧美一区二区不卡| 国产传媒久久文化传媒| 亚洲欧美日韩在线| 日韩亚洲欧美在线观看| 国产一区二区三区电影在线观看| 17c精品麻豆一区二区免费| 欧美日韩aaa| 国产成人在线免费| 一区二区久久久| 精品少妇一区二区三区在线视频| 成人午夜免费电影| 亚洲综合区在线| 久久久国产精华| 91成人在线观看喷潮| 久久狠狠亚洲综合| 一区二区三区在线观看欧美| 日韩亚洲欧美一区| 91浏览器在线视频| 久久草av在线| 亚洲最新视频在线播放| 久久网站最新地址| 欧美亚洲一区二区在线| 国内精品久久久久影院色 | 久久婷婷久久一区二区三区| 91日韩精品一区| 国产一区日韩二区欧美三区| 亚洲在线视频免费观看| 国产视频视频一区| 日韩一二三区不卡| 欧美曰成人黄网| 成人午夜视频在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲欧美日韩国产中文在线| 26uuu另类欧美亚洲曰本| 欧美喷水一区二区| 91啪亚洲精品| 成人不卡免费av| 国产精品亚洲第一| 韩国v欧美v亚洲v日本v| 午夜精品在线视频一区| 亚洲精品一二三| 国产精品免费网站在线观看| 日韩欧美一级二级| 制服丝袜成人动漫| 91麻豆精品在线观看| 国产不卡视频一区二区三区| 久久国产精品一区二区| 蜜臀av性久久久久蜜臀aⅴ| 亚洲在线中文字幕| 一区二区三区国产精华| 综合激情成人伊人| 国产精品美女视频| 国产精品网站一区| 久久亚洲春色中文字幕久久久| 欧美一区二区二区| 欧美不卡一二三| 日韩精品专区在线影院重磅| 日韩一区二区在线看| 日韩欧美高清在线| 精品国产伦一区二区三区免费| 日韩欧美成人午夜| 日韩精品一区二区三区中文精品| 91精品国产综合久久香蕉的特点| 欧美日韩精品二区第二页| 欧美日韩国产经典色站一区二区三区| 在线观看视频一区| 欧美日韩精品一二三区| 91精品国产入口| 欧美成人一区二区三区片免费 | 韩国v欧美v日本v亚洲v| 激情综合网激情| 国产福利视频一区二区三区| 国产成人一级电影| 91视频在线观看免费| 色哟哟精品一区| 欧美日韩另类一区| 精品国精品国产尤物美女| 26uuu精品一区二区在线观看| 国产午夜精品一区二区三区嫩草 | 欧美国产激情二区三区 | 国产三级精品视频| 国产精品全国免费观看高清 | 国产 欧美在线| av电影在线观看不卡| 91久久香蕉国产日韩欧美9色| 欧美性大战久久久久久久蜜臀 | 91国偷自产一区二区三区成为亚洲经典| 91香蕉国产在线观看软件| 欧美日韩国产一区| 久久女同性恋中文字幕| 亚洲激情五月婷婷| 精品一区二区在线观看| 成人av电影在线| 欧美丰满嫩嫩电影| 国产精品久久久久永久免费观看 | 亚洲精品免费在线| 看片网站欧美日韩| 99re热这里只有精品免费视频| 欧美性猛片xxxx免费看久爱| 日韩欧美色综合网站| 亚洲人成精品久久久久| 免费精品视频在线| 91蝌蚪国产九色| 欧美成人一区二区三区片免费 | 国产在线精品一区二区不卡了| 成人小视频在线观看| 制服丝袜中文字幕一区| 国产精品电影一区二区三区| 日韩福利电影在线观看| 99久久伊人网影院| 日韩精品一区二区三区swag| 亚洲愉拍自拍另类高清精品| 国产福利一区二区| 91精品国产91久久久久久一区二区 | 精品一二三四区| 日本高清不卡一区| 日本一区二区三区在线不卡| 免费在线观看一区| 欧美专区日韩专区| 1024成人网| 国产精品99久| 精品黑人一区二区三区久久| 亚洲在线视频一区| 91免费看视频| 国产精品电影院| 国产乱妇无码大片在线观看| 制服丝袜亚洲色图| 亚洲午夜国产一区99re久久| 91免费国产在线| 欧美国产综合色视频| 精品亚洲成a人在线观看 | 蜜桃av一区二区| 欧美美女bb生活片| 亚洲国产精品人人做人人爽| 97se亚洲国产综合自在线不卡| 久久精品无码一区二区三区| 久久精品国产久精国产爱| 3d动漫精品啪啪| 日本欧美肥老太交大片| 欧美日免费三级在线| 亚洲一二三区在线观看| 欧亚洲嫩模精品一区三区| 亚洲精品乱码久久久久久黑人| 成人精品高清在线| 亚洲欧洲www| 91福利视频在线| 亚洲国产成人porn| 在线综合+亚洲+欧美中文字幕| 亚洲va韩国va欧美va| 欧美一三区三区四区免费在线看 | 五月天久久比比资源色|