亚洲欧美第一页_禁久久精品乱码_粉嫩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精品国产| 福利电影一区二区| 欧美酷刑日本凌虐凌虐| 中文字幕第一区第二区| 五月婷婷激情综合网| 成人黄色在线网站| 日韩美女在线视频| 亚洲成av人片一区二区三区| 国产成人高清在线| 日韩欧美国产高清| 亚洲综合小说图片| 一本一道久久a久久精品| 精品99久久久久久| 蜜桃免费网站一区二区三区| 色欧美日韩亚洲| 国产精品久久久一区麻豆最新章节| 日韩高清不卡一区| 91久久久免费一区二区| 日本一区二区电影| 国产在线看一区| 91精品国产91久久久久久最新毛片| 亚洲伦在线观看| 成人黄色在线看| 国产精品美女久久久久久2018| 日本一不卡视频| 在线日韩av片| 一区二区三区在线观看欧美| av在线不卡网| 亚洲欧美在线另类| 成年人午夜久久久| 国产精品久久久99| jlzzjlzz亚洲女人18| 国产精品视频你懂的| 成人免费观看视频| 亚洲国产精品t66y| youjizz久久| 中文字幕一区免费在线观看| 99在线精品一区二区三区| 久久久久久麻豆| 国产一区二区三区免费看| 日韩欧美国产三级电影视频| 捆绑调教美女网站视频一区| 欧美精品一区二区三区蜜桃 | 亚洲欧美韩国综合色| zzijzzij亚洲日本少妇熟睡| 国产精品国产三级国产专播品爱网| 成人综合日日夜夜| 亚洲情趣在线观看| 欧美在线一区二区| 日日摸夜夜添夜夜添精品视频 | 五月激情丁香一区二区三区| 欧美挠脚心视频网站| 青青国产91久久久久久| 精品国偷自产国产一区| 黄色日韩网站视频| 中文字幕亚洲在| 欧美日韩极品在线观看一区| 美女网站一区二区| 国产日韩三级在线| 91丨porny丨国产| 日本亚洲视频在线| 国产亚洲成年网址在线观看| 成人深夜福利app| 亚洲午夜激情网站| 精品少妇一区二区三区在线播放| 国产成人无遮挡在线视频| 成人免费在线播放视频| 欧美人成免费网站| 国产一区二区三区综合| 一片黄亚洲嫩模| 精品国一区二区三区| 色偷偷久久一区二区三区| 亚洲444eee在线观看| 久久夜色精品一区| 欧美在线播放高清精品| 看片的网站亚洲| 亚洲精选在线视频| 久久综合狠狠综合久久激情| 91色porny在线视频| 蜜臀av一级做a爰片久久| 国产精品你懂的在线| 91精品国产欧美一区二区18| 国产精品伊人色| 亚洲a一区二区| 中文字幕在线免费不卡| 日韩一级二级三级精品视频| www.爱久久.com| 久久av中文字幕片| 午夜精品福利一区二区三区av| 国产亚洲一区二区三区| 91精品一区二区三区久久久久久 | 精品国产区一区| 在线观看免费视频综合| 国产成人精品免费视频网站| 日韩成人一区二区| 亚洲永久免费av| 国产精品国产三级国产aⅴ中文 | 粉嫩av一区二区三区在线播放| 亚洲五月六月丁香激情| 日本一区二区不卡视频| 日韩亚洲欧美综合| 欧美日韩免费一区二区三区| 国产成人精品一区二| 久久精品国产网站| 午夜影院久久久| 亚洲主播在线观看| 亚洲九九爱视频| 18欧美乱大交hd1984| 中文字幕高清不卡| 国产清纯白嫩初高生在线观看91| 日韩欧美在线综合网| 欧美精品粉嫩高潮一区二区| 欧美性受xxxx黑人xyx| 色综合咪咪久久| 91亚洲男人天堂| 91论坛在线播放| 色av一区二区| 日本黄色一区二区| 色素色在线综合| 欧美视频一区二区在线观看| 在线观看亚洲精品视频| 在线视频欧美精品| 欧美视频一区二区三区在线观看 | 亚洲成人av福利| 亚洲成人在线网站| 婷婷久久综合九色国产成人| 午夜精品久久久久久| 日韩二区在线观看| 久久成人综合网| 国产黄人亚洲片| eeuss鲁片一区二区三区| 99re这里只有精品视频首页| 色婷婷av一区二区三区gif| 欧美视频一区二区三区在线观看| 欧美日韩精品一区二区| 欧美一级电影网站| 久久精品亚洲精品国产欧美| 国产精品区一区二区三区| 综合色天天鬼久久鬼色| 亚洲国产成人tv| 麻豆91精品91久久久的内涵| 国产专区欧美精品| 99精品久久只有精品| 欧美丰满嫩嫩电影| 久久亚洲综合av| 亚洲人成伊人成综合网小说| 午夜久久久影院| 国产精品一卡二卡| 色婷婷国产精品综合在线观看| 欧美日韩卡一卡二| 久久亚洲精品国产精品紫薇| 中文字幕在线一区| 日本视频中文字幕一区二区三区| 韩国理伦片一区二区三区在线播放| 北岛玲一区二区三区四区| 欧美无人高清视频在线观看| 欧美xingq一区二区| 国产精品国产成人国产三级| 香蕉成人伊视频在线观看| 国产伦精品一区二区三区免费迷 | 午夜av一区二区三区| 国产在线日韩欧美| 在线中文字幕不卡| 久久久精品黄色| 亚洲成人精品一区| 成人午夜精品在线| 在线综合视频播放| 中文字幕中文字幕一区二区| 卡一卡二国产精品| 91污片在线观看| 久久久久国产精品厨房| 亚洲国产精品久久不卡毛片| 成+人+亚洲+综合天堂| 欧美一区二区三区日韩| 一区二区三区欧美| 波多野结衣欧美| 久久久久久久久久久99999| 亚洲成人在线观看视频| 99国产精品一区| 亚洲精品在线免费观看视频| 午夜视频一区二区| 色综合一区二区三区| 中文在线资源观看网站视频免费不卡| 图片区日韩欧美亚洲| 欧美性淫爽ww久久久久无| 国产精品毛片久久久久久久| 国产综合久久久久久久久久久久| 欧美日韩三级一区二区| 亚洲精品乱码久久久久久黑人 | 日韩精品电影一区亚洲| 99国产麻豆精品| 国产精品国产自产拍在线| 激情综合色播激情啊| 日韩久久精品一区| 奇米影视在线99精品| 欧美一级午夜免费电影| 亚洲成av人在线观看| 欧美午夜片在线看|