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

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

?? contenttype.java

?? java Email you can use it to send email to others
?? JAVA
字號:
/* * 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. *//* * @(#)ContentType.java	1.10 07/05/04 */package javax.mail.internet;import javax.mail.*;import java.util.*;import java.io.*;/** * This class represents a MIME ContentType value. It provides * methods to parse a ContentType string into individual components * and to generate a MIME style ContentType string. * * @version 1.10, 07/05/04 * @author  John Mani */public class ContentType {    private String primaryType;	// primary type    private String subType;	// subtype    private ParameterList list;	// parameter list    /**     * No-arg Constructor.     */    public ContentType() { }    /**     * Constructor.     *     * @param	primaryType	primary type     * @param	subType	subType     * @param	list	ParameterList     */    public ContentType(String primaryType, String subType, 			ParameterList list) {	this.primaryType = primaryType;	this.subType = subType;	this.list = list;    }    /**     * Constructor that takes a Content-Type string. The String     * is parsed into its constituents: primaryType, subType     * and parameters. A ParseException is thrown if the parse fails.      *     * @param	s	the Content-Type string.     * @exception	ParseException if the parse fails.     */    public ContentType(String s) throws ParseException {	HeaderTokenizer h = new HeaderTokenizer(s, HeaderTokenizer.MIME);	HeaderTokenizer.Token tk;	// First "type" ..	tk = h.next();	if (tk.getType() != HeaderTokenizer.Token.ATOM)	    throw new ParseException();	primaryType = tk.getValue();	// The '/' separator ..	tk = h.next();	if ((char)tk.getType() != '/')	    throw new ParseException();	// Then "subType" ..	tk = h.next();	if (tk.getType() != HeaderTokenizer.Token.ATOM)	    throw new ParseException();	subType = tk.getValue();	// Finally parameters ..	String rem = h.getRemainder();	if (rem != null)	    list = new ParameterList(rem);    }    /**     * Return the primary type.     * @return the primary type     */    public String getPrimaryType() {	return primaryType;    }    /**     * Return the subType.     * @return the subType     */    public String getSubType() {	return subType;    }    /**     * Return the MIME type string, without the parameters.     * The returned value is basically the concatenation of     * the primaryType, the '/' character and the secondaryType.     *     * @return the type     */    public String getBaseType() {	return primaryType + '/' + subType;    }    /**     * Return the specified parameter value. Returns <code>null</code>     * if this parameter is absent.     * @return	parameter value     */    public String getParameter(String name) {	if (list == null)	    return null;	return list.get(name);    }    /**     * Return a ParameterList object that holds all the available      * parameters. Returns null if no parameters are available.     *     * @return	ParameterList     */    public ParameterList getParameterList() {	return list;    }    /**     * Set the primary type. Overrides existing primary type.     * @param	primaryType	primary type     */    public void setPrimaryType(String primaryType) {	this.primaryType = primaryType;    }    /**     * Set the subType.  Replaces the existing subType.     * @param	subType	the subType     */    public void setSubType(String subType) {	this.subType = subType;    }    /**     * Set the specified parameter. If this parameter already exists,     * it is replaced by this new value.     *     * @param	name	parameter name     * @param	value	parameter value     */    public void setParameter(String name, String value) {	if (list == null)	    list = new ParameterList();	list.set(name, value);    }    /**     * Set a new ParameterList.     * @param	list	ParameterList     */    public void setParameterList(ParameterList list) {	this.list = list;    }    /**     * Retrieve a RFC2045 style string representation of     * this Content-Type. Returns <code>null</code> if     * the conversion failed.     *     * @return	RFC2045 style string     */    public String toString() {	if (primaryType == null || subType == null) // need both	    return null;	StringBuffer sb = new StringBuffer();	sb.append(primaryType).append('/').append(subType);	if (list != null)            // append the parameter list             // use the length of the string buffer + the length of            // the header name formatted as follows "Content-Type: "	    sb.append(list.toString(sb.length() + 14));		return sb.toString();    }    /**     * Match with the specified ContentType object. This method     * compares <strong>only the <code>primaryType</code> and      * <code>subType</code> </strong>. The parameters of both operands     * are ignored. <p>     *     * For example, this method will return <code>true</code> when     * comparing the ContentTypes for <strong>"text/plain"</strong>     * and <strong>"text/plain; charset=foobar"</strong>.     *     * If the <code>subType</code> of either operand is the special     * character '*', then the subtype is ignored during the match.      * For example, this method will return <code>true</code> when      * comparing the ContentTypes for <strong>"text/plain"</strong>      * and <strong>"text/*" </strong>     *     * @param   cType	ContentType to compare this against     */    public boolean match(ContentType cType) {	// Match primaryType	if (!primaryType.equalsIgnoreCase(cType.getPrimaryType()))	    return false;		String sType = cType.getSubType();	// If either one of the subTypes is wildcarded, return true	if ((subType.charAt(0) == '*') || (sType.charAt(0) == '*'))	    return true;		// Match subType	if (!subType.equalsIgnoreCase(sType))	    return false;	return true;    }    /**     * Match with the specified content-type string. This method     * compares <strong>only the <code>primaryType</code> and      * <code>subType</code> </strong>.     * The parameters of both operands are ignored. <p>     *     * For example, this method will return <code>true</code> when     * comparing the ContentType for <strong>"text/plain"</strong>     * with <strong>"text/plain; charset=foobar"</strong>.     *     * If the <code>subType</code> of either operand is the special      * character '*', then the subtype is ignored during the match.      * For example, this method will return <code>true</code> when      * comparing the ContentType for <strong>"text/plain"</strong>      * with <strong>"text/*" </strong>     */    public boolean match(String s) {	try {	    return match(new ContentType(s));	} catch (ParseException pex) {	    return false;	}    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久国产字幕高潮| 色婷婷精品大视频在线蜜桃视频| 7799精品视频| 青娱乐精品视频| 亚洲精品在线电影| 成人国产精品免费观看| 中文字幕亚洲一区二区va在线| 99久久久无码国产精品| 午夜一区二区三区在线观看| 日韩一区二区在线播放| 国产高清久久久久| 亚洲视频精选在线| 91精品国产一区二区三区蜜臀| 麻豆精品久久精品色综合| 国产精品无人区| 在线欧美小视频| 激情小说亚洲一区| 国产精品久久久久aaaa樱花| 欧美在线影院一区二区| 九色综合狠狠综合久久| 亚洲青青青在线视频| 6080亚洲精品一区二区| 成人黄页在线观看| 污片在线观看一区二区| 国产欧美精品一区| 欧美三级韩国三级日本一级| 国产精品一区二区x88av| 亚洲精品国产无套在线观| 日韩免费观看高清完整版在线观看| 国产a视频精品免费观看| 五月天激情综合网| 国产精品福利影院| 日韩欧美区一区二| 日本道免费精品一区二区三区| 日日摸夜夜添夜夜添国产精品| 国产欧美日韩不卡免费| 欧美一区二区三区日韩视频| 9i看片成人免费高清| 久久国产人妖系列| 亚洲自拍另类综合| 中文在线免费一区三区高中清不卡| 欧美午夜精品一区二区蜜桃| 成人国产免费视频| 国产在线精品免费av| 午夜电影网一区| 一区视频在线播放| 久久色中文字幕| 51精品秘密在线观看| 91污片在线观看| 国产乱码精品一区二区三区av| 亚洲大片精品永久免费| 中文字幕一区二区视频| 亚洲精品一区二区精华| 欧美日韩成人在线| 色婷婷久久99综合精品jk白丝| 国产经典欧美精品| 激情深爱一区二区| 久久精品国产第一区二区三区| 亚洲在线成人精品| 亚洲人吸女人奶水| 中文字幕中文在线不卡住| 久久久亚洲欧洲日产国码αv| 欧美精品在线观看播放| 在线免费av一区| 91丝袜美女网| 99久久国产免费看| av电影在线观看一区| 成人亚洲一区二区一| 国v精品久久久网| 丰满放荡岳乱妇91ww| 国产精品69久久久久水密桃| 国产在线精品免费av| 国产综合一区二区| 国产盗摄一区二区| 国产 欧美在线| www.激情成人| 91免费版在线看| 在线免费观看日本一区| 91国产丝袜在线播放| 欧美亚洲高清一区二区三区不卡| 色婷婷国产精品| 欧美日韩激情一区二区三区| 欧美福利电影网| 日韩一区二区在线观看| 日韩美女主播在线视频一区二区三区| 欧美一区二区在线播放| 欧美精品一区二区三区高清aⅴ | 欧美三级日韩在线| 欧美日韩精品一二三区| 日韩欧美一二三四区| 精品福利一二区| 国产精品人成在线观看免费| 亚洲毛片av在线| 日本不卡中文字幕| 国产精品自拍在线| av色综合久久天堂av综合| 色乱码一区二区三区88| 欧美电影一区二区| 欧美精品一区二区久久久| 欧美激情一区在线观看| 一区二区理论电影在线观看| 免费看日韩a级影片| 国产精品综合一区二区三区| fc2成人免费人成在线观看播放 | 久久久久久9999| 亚洲私人影院在线观看| 天天色 色综合| 国产精品一区二区不卡| 在线免费不卡电影| 精品久久人人做人人爰| 国产精品剧情在线亚洲| 无码av免费一区二区三区试看| 国产麻豆日韩欧美久久| 日本福利一区二区| 久久综合九色综合久久久精品综合| 国产精品女主播av| 日本不卡在线视频| 91亚洲国产成人精品一区二三 | 亚洲一区二区精品视频| 激情亚洲综合在线| 色婷婷激情一区二区三区| 精品国产凹凸成av人导航| 亚洲精品视频一区二区| 精品一区二区三区日韩| 色综合一区二区三区| 日韩精品一区二区三区swag| 亚洲激情男女视频| 国产一区二区三区免费播放| 欧美性大战久久久久久久蜜臀 | 一区二区三区自拍| 国产精品一二三在| 91精品欧美久久久久久动漫| 国产精品久久午夜夜伦鲁鲁| 久久狠狠亚洲综合| 欧美日韩你懂的| 中文字幕一区二区三| 国内外成人在线| 91精品国产综合久久精品| 亚洲日本在线观看| 国产成人午夜高潮毛片| 日韩精品中文字幕在线不卡尤物 | 中文字幕+乱码+中文字幕一区| 日本视频一区二区三区| 在线精品视频免费观看| 国产精品免费人成网站| 久久99精品国产91久久来源| 欧美日韩一区二区在线观看视频 | 一色桃子久久精品亚洲| 国产成人精品免费一区二区| 欧美日韩成人在线| 亚洲狠狠爱一区二区三区| 91在线观看免费视频| 久久久精品一品道一区| 精品夜夜嗨av一区二区三区| 91精品中文字幕一区二区三区| 亚洲一区免费在线观看| 日本福利一区二区| 亚洲免费观看高清完整版在线| 成人网页在线观看| 国产精品污污网站在线观看| 成人一区二区三区视频| 日本一区二区三区四区在线视频| 国产精品系列在线观看| 国产午夜久久久久| 成人激情校园春色| 亚洲视频免费在线观看| 色婷婷av一区二区三区软件 | av高清不卡在线| 中文字幕一区av| 色国产精品一区在线观看| 亚洲欧美国产毛片在线| 色网站国产精品| 一区二区三区视频在线看| 欧美性色欧美a在线播放| 亚洲成人先锋电影| 日韩一区二区三区精品视频| 久久精品国产一区二区三| 精品久久99ma| 成人va在线观看| 亚洲另类一区二区| 6080日韩午夜伦伦午夜伦| 九一九一国产精品| 国产精品久久久久久久久免费桃花| 成人少妇影院yyyy| 亚洲一区在线观看免费| 欧美精品在线视频| 国产一区二区伦理| 中文字幕视频一区| 欧美三级电影在线观看| 免费观看在线综合色| 欧美国产综合一区二区| 91久久精品国产91性色tv | 一区二区三区免费| 日韩欧美的一区| 国产高清不卡一区| 亚洲一区中文日韩| 亚洲精品在线免费观看视频| av成人动漫在线观看| 日韩精品欧美成人高清一区二区| 久久这里只有精品首页|