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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? urlname.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
     * Compares two URLNames. The result is true if and only if the     * argument is not null and is a URLName object that represents the     * same URLName as this object. Two URLName objects are equal if     * they have the same protocol and the same host,     * the same port number on the host, the same username,     * and the same file on the host. The fields (host, username,     * file) are also considered the same if they are both     * null.  <p>     *     * Hosts are considered equal if the names are equal (case independent)     * or if host name lookups for them both succeed and they both reference     * the same IP address. <p>     *     * Note that URLName has no knowledge of default port numbers for     * particular protocols, so "imap://host" and "imap://host:143"     * would not compare as equal. <p>     *     * Note also that the password field is not included in the comparison,     * nor is any reference field appended to the filename.     */    public boolean equals(Object obj) {        if (!(obj instanceof URLName))	    return false;	URLName u2 = (URLName)obj;	// compare protocols	if (u2.protocol == null || !u2.protocol.equals(protocol))	    return false;	// compare hosts	InetAddress a1 = getHostAddress(), a2 = u2.getHostAddress();	// if we have internet address for both, and they're not the same, fail	if (a1 != null && a2 != null) {	    if (!a1.equals(a2))		return false;	// else, if we have host names for both, and they're not the same, fail	} else if (host != null && u2.host != null) {	    if (!host.equalsIgnoreCase(u2.host))		return false;	// else, if not both null	} else if (host != u2.host) {	    return false;	}	// at this point, hosts match	// compare usernames	if (!(username == u2.username ||		(username != null && username.equals(u2.username))))	    return false;	// Forget about password since it doesn't	// really denote a different store.	// compare files	String f1 = file == null ? "" : file;	String f2 = u2.file == null ? "" : u2.file;	if (!f1.equals(f2))	    return false;	// compare ports	if (port != u2.port)	    return false;	// all comparisons succeeded, they're equal        return true;    }    /**     * Compute the hash code for this URLName.     */    public int hashCode() {	if (hashCode != 0)	    return hashCode;	if (protocol != null)	    hashCode += protocol.hashCode();	InetAddress addr = getHostAddress();	if (addr != null)	    hashCode += addr.hashCode();	else if (host != null)	    hashCode += host.toLowerCase(Locale.ENGLISH).hashCode();	if (username != null)	    hashCode += username.hashCode();	if (file != null)	    hashCode += file.hashCode();	hashCode += port;	return hashCode;    }    /**     * Get the IP address of our host.  Look up the     * name the first time and remember that we've done     * so, whether the lookup fails or not.     */    private synchronized InetAddress getHostAddress() {	if (hostAddressKnown)	    return hostAddress;	if (host == null)	    return null;	try {	    hostAddress = InetAddress.getByName(host);	} catch (UnknownHostException ex) {	    hostAddress = null;	}	hostAddressKnown = true;	return hostAddress;    }    /**     * The class contains a utility method for converting a     * <code>String</code> into a MIME format called     * "<code>x-www-form-urlencoded</code>" format.     * <p>     * To convert a <code>String</code>, each character is examined in turn:     * <ul>     * <li>The ASCII characters '<code>a</code>' through '<code>z</code>',     *     '<code>A</code>' through '<code>Z</code>', '<code>0</code>'     *     through '<code>9</code>', and &quot;.&quot;, &quot;-&quot;,      * &quot;*&quot;, &quot;_&quot; remain the same.     * <li>The space character '<code>&nbsp;</code>' is converted into a     *     plus sign '<code>+</code>'.     * <li>All other characters are converted into the 3-character string     *     "<code>%<i>xy</i></code>", where <i>xy</i> is the two-digit     *     hexadecimal representation of the lower 8-bits of the character.     * </ul>     *     * @author  Herb Jellinek     * @version 1.16, 10/23/99     * @since   JDK1.0     */    static BitSet dontNeedEncoding;    static final int caseDiff = ('a' - 'A');    /* The list of characters that are not encoded have been determined by       referencing O'Reilly's "HTML: The Definitive Guide" (page 164). */    static {	dontNeedEncoding = new BitSet(256);	int i;	for (i = 'a'; i <= 'z'; i++) {	    dontNeedEncoding.set(i);	}	for (i = 'A'; i <= 'Z'; i++) {	    dontNeedEncoding.set(i);	}	for (i = '0'; i <= '9'; i++) {	    dontNeedEncoding.set(i);	}	/* encoding a space to a + is done in the encode() method */	dontNeedEncoding.set(' ');	dontNeedEncoding.set('-');	dontNeedEncoding.set('_');	dontNeedEncoding.set('.');	dontNeedEncoding.set('*');    }    /**     * Translates a string into <code>x-www-form-urlencoded</code> format.     *     * @param   s   <code>String</code> to be translated.     * @return  the translated <code>String</code>.     */    static String encode(String s) {	if (s == null)	    return null;	// the common case is no encoding is needed	for (int i = 0; i < s.length(); i++) {	    int c = (int)s.charAt(i);	    if (c == ' ' || !dontNeedEncoding.get(c))		return _encode(s);	}	return s;    }    private static String _encode(String s) {	int maxBytesPerChar = 10;        StringBuffer out = new StringBuffer(s.length());	ByteArrayOutputStream buf = new ByteArrayOutputStream(maxBytesPerChar);	OutputStreamWriter writer = new OutputStreamWriter(buf);	for (int i = 0; i < s.length(); i++) {	    int c = (int)s.charAt(i);	    if (dontNeedEncoding.get(c)) {		if (c == ' ') {		    c = '+';		}		out.append((char)c);	    } else {		// convert to external encoding before hex conversion		try {		    writer.write(c);		    writer.flush();		} catch(IOException e) {		    buf.reset();		    continue;		}		byte[] ba = buf.toByteArray();		for (int j = 0; j < ba.length; j++) {		    out.append('%');		    char ch = Character.forDigit((ba[j] >> 4) & 0xF, 16);		    // converting to use uppercase letter as part of		    // the hex value if ch is a letter.		    if (Character.isLetter(ch)) {			ch -= caseDiff;		    }		    out.append(ch);		    ch = Character.forDigit(ba[j] & 0xF, 16);		    if (Character.isLetter(ch)) {			ch -= caseDiff;		    }		    out.append(ch);		}		buf.reset();	    }	}	return out.toString();    }    /**     * The class contains a utility method for converting from     * a MIME format called "<code>x-www-form-urlencoded</code>"     * to a <code>String</code>     * <p>     * To convert to a <code>String</code>, each character is examined in turn:     * <ul>     * <li>The ASCII characters '<code>a</code>' through '<code>z</code>',     * '<code>A</code>' through '<code>Z</code>', and '<code>0</code>'     * through '<code>9</code>' remain the same.     * <li>The plus sign '<code>+</code>'is converted into a     * space character '<code>&nbsp;</code>'.     * <li>The remaining characters are represented by 3-character     * strings which begin with the percent sign,     * "<code>%<i>xy</i></code>", where <i>xy</i> is the two-digit     * hexadecimal representation of the lower 8-bits of the character.     * </ul>     *     * @author  Mark Chamness     * @author  Michael McCloskey     * @version 1.7, 10/22/99     * @since   1.2     */    /**     * Decodes a &quot;x-www-form-urlencoded&quot;      * to a <tt>String</tt>.     * @param s the <code>String</code> to decode     * @return the newly decoded <code>String</code>     */    static String decode(String s) {	if (s == null)	    return null;	if (indexOfAny(s, "+%") == -1)	    return s;		// the common case        StringBuffer sb = new StringBuffer();        for (int i = 0; i < s.length(); i++) {            char c = s.charAt(i);            switch (c) {                case '+':                    sb.append(' ');                    break;                case '%':                    try {                        sb.append((char)Integer.parseInt(                                        s.substring(i+1,i+3),16));                    } catch (NumberFormatException e) {                        throw new IllegalArgumentException();                    }                    i += 2;                    break;                default:                    sb.append(c);                    break;            }        }        // Undo conversion to external encoding        String result = sb.toString();        try {            byte[] inputBytes = result.getBytes("8859_1");            result = new String(inputBytes);        } catch (UnsupportedEncodingException e) {            // The system should always have 8859_1        }        return result;    }    /**     * Return the first index of any of the characters in "any" in "s",     * or -1 if none are found.     *     * This should be a method on String.     */    private static int indexOfAny(String s, String any) {	return indexOfAny(s, any, 0);    }    private static int indexOfAny(String s, String any, int start) {	try {	    int len = s.length();	    for (int i = start; i < len; i++) {		if (any.indexOf(s.charAt(i)) >= 0)		    return i;	    }	    return -1;	} catch (StringIndexOutOfBoundsException e) {	    return -1;	}    }    /*    // Do not remove, this is needed when testing new URL cases    public static void main(String[] argv) {	String [] testURLNames = {	    "protocol://userid:password@host:119/file",	    "http://funny/folder/file.html",	    "http://funny/folder/file.html#ref",	    "http://funny/folder/file.html#",	    "http://funny/#ref",	    "imap://jmr:secret@labyrinth//var/mail/jmr",	    "nntp://fred@labyrinth:143/save/it/now.mbox",	    "imap://jmr@labyrinth/INBOX",	    "imap://labryrinth",	    "imap://labryrinth/",	    "file:",	    "file:INBOX",	    "file:/home/shannon/mail/foo",	    "/tmp/foo",	    "//host/tmp/foo",	    ":/tmp/foo",	    "/really/weird:/tmp/foo#bar",	    ""	};	URLName url =	    new URLName("protocol", "host", 119, "file", "userid", "password");	System.out.println("Test URL: " + url.toString());	if (argv.length == 0) {	    for (int i = 0; i < testURLNames.length; i++) {		print(testURLNames[i]);		System.out.println();	    }	} else {	    for (int i = 0; i < argv.length; i++) {		print(argv[i]);		System.out.println();	    }	    if (argv.length == 2) {		URLName u1 = new URLName(argv[0]);		URLName u2 = new URLName(argv[1]);		System.out.println("URL1 hash code: " + u1.hashCode());		System.out.println("URL2 hash code: " + u2.hashCode());		if (u1.equals(u2))		    System.out.println("success, equal");		else		    System.out.println("fail, not equal");		if (u2.equals(u1))		    System.out.println("success, equal");		else		    System.out.println("fail, not equal");		if (u1.hashCode() == u2.hashCode())		    System.out.println("success, hashCodes equal");		else		    System.out.println("fail, hashCodes not equal");	    }	}    }    private static void print(String name) {	URLName url = new URLName(name);	System.out.println("Original URL: " + name);	System.out.println("The fullUrl : " + url.toString());	if (!name.equals(url.toString()))	    System.out.println("            : NOT EQUAL!");	System.out.println("The protocol is: " + url.getProtocol());	System.out.println("The host is: " + url.getHost());	System.out.println("The port is: " + url.getPort());	System.out.println("The user is: " + url.getUsername());	System.out.println("The password is: " + url.getPassword());	System.out.println("The file is: " + url.getFile());	System.out.println("The ref is: " + url.getRef());    }    */}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美电影免费提供在线观看| 欧美伊人久久久久久久久影院 | 亚洲另类在线制服丝袜| 欧美剧情电影在线观看完整版免费励志电影| 亚洲伦在线观看| 日韩欧美激情四射| 在线亚洲免费视频| 天天综合网 天天综合色| 中文字幕乱码一区二区免费| 91精品国产福利在线观看| 免费高清不卡av| xnxx国产精品| 91精品国产色综合久久不卡蜜臀| 91色porny蝌蚪| 亚洲va国产va欧美va观看| 欧美一级淫片007| 日本久久一区二区三区| 粉嫩av亚洲一区二区图片| 成人欧美一区二区三区小说 | 国产乱国产乱300精品| 久久无码av三级| 91精品久久久久久蜜臀| 国产做a爰片久久毛片| 综合激情成人伊人| 中文字幕精品—区二区四季| 久久综合九色欧美综合狠狠| 欧美精品久久久久久久多人混战 | 日本网站在线观看一区二区三区| 亚洲人精品一区| 777午夜精品视频在线播放| 国产综合一区二区| 伊人一区二区三区| 欧美成人官网二区| 日韩免费观看2025年上映的电影| 欧美美女喷水视频| 欧美日韩不卡在线| 91麻豆精品国产91久久久| 欧美高清视频www夜色资源网| 精品视频一区二区不卡| 欧美日韩中文字幕一区二区| 欧美日韩精品综合在线| 国产成人免费高清| 国产suv精品一区二区三区| 香蕉久久夜色精品国产使用方法 | 黄色日韩三级电影| 黑人精品欧美一区二区蜜桃| 精品一区精品二区高清| 亚洲精品国产品国语在线app| 国产精品第13页| 亚洲天堂成人网| 亚洲午夜激情网站| 奇米777欧美一区二区| 激情偷乱视频一区二区三区| 国产高清精品在线| www.久久久久久久久| 色偷偷久久一区二区三区| 在线视频一区二区免费| gogo大胆日本视频一区| 97精品电影院| 国产成人精品亚洲午夜麻豆| 蜜桃视频在线观看一区二区| 亚洲一区欧美一区| 综合自拍亚洲综合图不卡区| 亚洲男同1069视频| 天堂久久久久va久久久久| 九色|91porny| 青青草97国产精品免费观看| 婷婷开心激情综合| 国产综合久久久久影院| 视频一区二区欧美| 亚洲午夜电影在线| 亚洲免费观看高清完整版在线观看 | 欧美中文字幕亚洲一区二区va在线| 欧美日韩国产高清一区二区三区| 99久久综合99久久综合网站| 在线观看亚洲精品视频| 日韩欧美在线网站| 国产精品国产三级国产普通话三级| 亚洲国产欧美另类丝袜| 亚洲国产日韩精品| 国产久卡久卡久卡久卡视频精品| 九九精品视频在线看| www.视频一区| 日韩一区二区在线看片| 欧美一卡2卡3卡4卡| 中文字幕国产一区| 日韩成人午夜精品| 蜜桃视频在线观看一区| 99re这里只有精品视频首页| 成人国产视频在线观看| 制服丝袜中文字幕亚洲| 日韩一区二区三区精品视频| 中文字幕av不卡| 蜜臀久久久久久久| 色婷婷av一区二区三区大白胸 | 亚洲欧美激情插| 亚洲精品欧美二区三区中文字幕| 亚洲欧美另类图片小说| 精品一区二区三区久久| 国产在线一区二区| 欧美军同video69gay| 精品日韩一区二区三区| 一区二区三区中文在线| 夫妻av一区二区| 欧美成人综合网站| 五月综合激情网| 色久综合一二码| 欧美国产日韩a欧美在线观看| 日韩电影在线观看电影| 国产精品538一区二区在线| 成人免费不卡视频| 久久欧美一区二区| 亚洲欧美另类综合偷拍| 国产高清久久久久| wwwwxxxxx欧美| 亚洲视频一区二区在线观看| 国产在线视频精品一区| 欧美成人性福生活免费看| 日韩不卡在线观看日韩不卡视频| 91黄色免费网站| 亚洲精品在线三区| 日本不卡一区二区三区| 欧美亚州韩日在线看免费版国语版| 91精品国产欧美一区二区成人| 欧美精品一区二区三区蜜桃 | 日韩欧美你懂的| 天堂va蜜桃一区二区三区 | 成人福利视频在线| 精品视频1区2区| 国产亚洲综合色| 国产在线精品一区二区| 久久亚洲私人国产精品va媚药| 久久成人免费网站| 色婷婷精品久久二区二区蜜臂av| 日韩毛片视频在线看| 91麻豆免费看片| 精品国产露脸精彩对白| 久久国产麻豆精品| 久久亚洲精品国产精品紫薇 | 欧美日韩视频在线观看一区二区三区| 日韩欧美的一区二区| 亚洲欧洲国产日韩| 91丨九色丨蝌蚪富婆spa| 一色屋精品亚洲香蕉网站| 91天堂素人约啪| 亚洲自拍偷拍欧美| 欧美日韩国产区一| 亚洲欧美日韩久久| 在线精品视频小说1| 中文字幕的久久| 91日韩精品一区| 欧美激情一区二区三区全黄| 成人99免费视频| 一区二区三区免费看视频| 欧美日本在线播放| 韩国精品免费视频| 国产精品久久久久久久久动漫 | 国产精品麻豆一区二区| 麻豆成人av在线| 欧美日韩在线精品一区二区三区激情| 亚瑟在线精品视频| 亚洲精品一区二区三区蜜桃下载| 午夜久久久影院| 在线欧美小视频| 日日夜夜免费精品视频| 久久影视一区二区| 国产一区二区三区免费看| 欧美日韩国产片| 国产一区视频导航| 依依成人精品视频| 精品久久国产字幕高潮| 色综合咪咪久久| 毛片不卡一区二区| 日韩美女一区二区三区| 免费成人在线播放| 国产精品久久久久久久浪潮网站| 欧美性一区二区| 午夜视频在线观看一区二区| 久久精品一区二区| 国产精品一区二区免费不卡| 亚洲精品欧美综合四区| 日本道色综合久久| 裸体健美xxxx欧美裸体表演| 中文字幕一区三区| 日韩欧美国产精品一区| 老司机精品视频线观看86| 91精品在线免费观看| 成人黄色在线网站| 亚洲天堂福利av| 在线观看国产91| 丝袜美腿亚洲一区二区图片| 欧美日韩不卡视频| 青青草视频一区| 亚洲欧美另类综合偷拍| 久久先锋影音av| 欧美剧在线免费观看网站 | 成人app软件下载大全免费| 久久精品国产亚洲a| 亚洲va韩国va欧美va| 欧美一区二区三区日韩视频|