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

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

?? text_rfc822headers.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. *//* * @(#)text_rfc822headers.java	1.4 07/05/04 */package com.sun.mail.dsn;import java.io.*;import java.awt.datatransfer.DataFlavor;import javax.activation.*;import javax.mail.*;import javax.mail.internet.*;/** * DataContentHandler for text/rfc822-headers. * * @version 1.4, 07/05/04 */public class text_rfc822headers implements DataContentHandler {    private static ActivationDataFlavor myDF = new ActivationDataFlavor(	MessageHeaders.class,	"text/rfc822-headers",	"RFC822 headers");    private static ActivationDataFlavor myDFs = new ActivationDataFlavor(	java.lang.String.class,	"text/rfc822-headers",	"RFC822 headers");    /**     * Return the DataFlavors for this <code>DataContentHandler</code>.     *     * @return The DataFlavors     */    public DataFlavor[] getTransferDataFlavors() {	return new DataFlavor[] { myDF, myDFs };    }    /**     * Return the Transfer Data of type DataFlavor from InputStream.     *     * @param df The DataFlavor     * @param ds The DataSource corresponding to the data     * @return String object     */    public Object getTransferData(DataFlavor df, DataSource ds) 			throws IOException {	// use myDF.equals to be sure to get ActivationDataFlavor.equals,	// which properly ignores Content-Type parameters in comparison	if (myDF.equals(df))	    return getContent(ds);	else if (myDFs.equals(df))	    return getStringContent(ds);	else	    return null;    }    public Object getContent(DataSource ds) throws IOException {	try {	    return new MessageHeaders(ds.getInputStream());	} catch (MessagingException mex) {//System.out.println("Exception creating MessageHeaders: " + mex);	    throw new IOException("Exception creating MessageHeaders: " + mex);	}    }    private Object getStringContent(DataSource ds) throws IOException {	String enc = null;	InputStreamReader is = null;		try {	    enc = getCharset(ds.getContentType());	    is = new InputStreamReader(ds.getInputStream(), enc);	} catch (IllegalArgumentException iex) {	    /*	     * An unknown charset of the form ISO-XXX-XXX will cause	     * the JDK to throw an IllegalArgumentException.  The	     * JDK will attempt to create a classname using this string,	     * but valid classnames must not contain the character '-',	     * and this results in an IllegalArgumentException, rather than	     * the expected UnsupportedEncodingException.  Yikes.	     */	    throw new UnsupportedEncodingException(enc);	}	int pos = 0;	int count;	char buf[] = new char[1024];	while ((count = is.read(buf, pos, buf.length - pos)) != -1) {	    pos += count;	    if (pos >= buf.length) {		int size = buf.length;		if (size < 256*1024)		    size += size;		else		    size += 256*1024;		char tbuf[] = new char[size];		System.arraycopy(buf, 0, tbuf, 0, pos);		buf = tbuf;	    }	}	return new String(buf, 0, pos);    }        /**     * Write the object to the output stream, using the specified MIME type.     */    public void writeTo(Object obj, String type, OutputStream os) 			throws IOException {	if (obj instanceof MessageHeaders) {	    MessageHeaders mh = (MessageHeaders)obj;	    try {		mh.writeTo(os);	    } catch (MessagingException mex) {		Exception ex = mex.getNextException();		if (ex instanceof IOException)		    throw (IOException)ex;		else		    throw new IOException("Exception writing headers: " + mex);	    }	    return;	}	if (!(obj instanceof String))	    throw new IOException("\"" + myDFs.getMimeType() +		"\" DataContentHandler requires String object, " +		"was given object of type " + obj.getClass().toString());	String enc = null;	OutputStreamWriter osw = null;	try {	    enc = getCharset(type);	    osw = new OutputStreamWriter(os, enc);	} catch (IllegalArgumentException iex) {	    /*	     * An unknown charset of the form ISO-XXX-XXX will cause	     * the JDK to throw an IllegalArgumentException.  The	     * JDK will attempt to create a classname using this string,	     * but valid classnames must not contain the character '-',	     * and this results in an IllegalArgumentException, rather than	     * the expected UnsupportedEncodingException.  Yikes.	     */	    throw new UnsupportedEncodingException(enc);	}	String s = (String)obj;	osw.write(s, 0, s.length());	osw.flush();    }    private String getCharset(String type) {	try {	    ContentType ct = new ContentType(type);	    String charset = ct.getParameter("charset");	    if (charset == null)		// If the charset parameter is absent, use US-ASCII.		charset = "us-ascii";	    return MimeUtility.javaCharset(charset);	} catch (Exception ex) {	    return null;	}    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产99精品视频| 欧美无乱码久久久免费午夜一区| 风间由美一区二区三区在线观看 | 久久伊人蜜桃av一区二区| 亚洲国产精品成人综合| 亚洲二区在线视频| 成人性生交大片免费看中文| 欧美一区二区在线视频| 1区2区3区精品视频| 经典三级视频一区| 91久久精品一区二区三| 久久久久久久久久久久久女国产乱| 亚洲尤物视频在线| 94色蜜桃网一区二区三区| www激情久久| 日韩av电影免费观看高清完整版| 9色porny自拍视频一区二区| 久久久久高清精品| 久88久久88久久久| 欧美一区二区观看视频| 偷拍与自拍一区| 精品视频免费看| 亚洲国产精品欧美一二99| 一本一道久久a久久精品| 国产精品毛片无遮挡高清| 国产91对白在线观看九色| 久久影院视频免费| 国产福利91精品一区| 久久精品亚洲精品国产欧美| 国内一区二区在线| 久久香蕉国产线看观看99| 九九在线精品视频| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 精品sm捆绑视频| 蜜桃视频一区二区三区| 欧美成人aa大片| 久久99精品久久久久婷婷| 欧美va天堂va视频va在线| 伦理电影国产精品| 精品国产免费人成电影在线观看四季 | 久久精品国产99| 日韩欧美一级在线播放| 久久精品久久99精品久久| 精品久久五月天| 国产精品一线二线三线| 欧美激情一区二区三区四区| 成人午夜av电影| 一区二区三区欧美视频| 884aa四虎影成人精品一区| 卡一卡二国产精品| 欧美激情一区二区三区在线| 日本道色综合久久| 日韩高清电影一区| 久久亚洲精精品中文字幕早川悠里 | 91极品视觉盛宴| 肉肉av福利一精品导航| 亚洲精品一区二区三区99| 成人免费毛片片v| 亚洲自拍偷拍网站| 精品国产伦一区二区三区观看体验| 国产一区在线观看视频| 中文字幕亚洲精品在线观看 | 暴力调教一区二区三区| 一区二区三区四区国产精品| 91精品国产麻豆国产自产在线| 精品无人区卡一卡二卡三乱码免费卡| 亚洲国产精品二十页| 欧美日韩精品一区视频| 国产在线日韩欧美| 亚洲精品国产品国语在线app| 日韩三级视频在线看| 波多野结衣在线一区| 日本va欧美va精品| 国产精品黄色在线观看| 91精品福利在线一区二区三区| 国产成人综合在线| 亚洲国产aⅴ成人精品无吗| 国产三级欧美三级日产三级99| 色哟哟一区二区在线观看| 国产一区二区h| 亚洲国产三级在线| 国产精品素人一区二区| 日韩亚洲欧美一区二区三区| av亚洲精华国产精华精| 久久国产精品无码网站| 亚洲午夜私人影院| 中文字幕的久久| 精品国产凹凸成av人导航| 欧美中文字幕不卡| 91在线观看免费视频| 国产一区日韩二区欧美三区| 性做久久久久久| 综合久久久久久| 国产目拍亚洲精品99久久精品| 欧美一区二区女人| 欧美日韩在线三级| 99热这里都是精品| 岛国精品在线播放| 国产一区二区三区美女| 美女久久久精品| 日韩福利电影在线| 亚洲成人午夜影院| 一二三区精品福利视频| 日韩一区中文字幕| 国产精品三级视频| 中文字幕 久热精品 视频在线| 久久亚洲私人国产精品va媚药| 欧美一区二区三区四区视频| 精品1区2区3区| 91精品国模一区二区三区| 欧美精品久久久久久久多人混战| 欧美日韩国产不卡| 欧美日韩国产一区二区三区地区| 在线中文字幕一区| 欧美日韩一区二区欧美激情| 欧美久久久久久久久中文字幕| 欧美日韩精品一区二区三区蜜桃| 在线观看一区二区视频| 在线免费av一区| 欧美日韩中文精品| 日韩视频免费观看高清在线视频| 日韩午夜av电影| 精品久久久久香蕉网| 国产欧美日产一区| 亚洲天堂2014| 亚洲午夜日本在线观看| 麻豆视频一区二区| 国产精品夜夜嗨| av在线综合网| 欧美人与禽zozo性伦| 日韩三区在线观看| 中文字幕第一区| 一区二区高清视频在线观看| 三级在线观看一区二区| 国内精品久久久久影院薰衣草| 国产成人精品一区二区三区四区| 91色婷婷久久久久合中文| 欧美日本视频在线| 久久精品男人天堂av| 一区二区三区免费看视频| 日韩电影在线一区二区三区| 国产精品一线二线三线精华| 99久久夜色精品国产网站| 欧美日韩国产美女| 久久精品夜色噜噜亚洲aⅴ| 中文字幕中文字幕在线一区| 一区二区三区不卡视频| 蜜桃av一区二区在线观看| 成人免费观看视频| 欧美精品日韩一本| 欧美国产在线观看| 亚洲777理论| 成人av在线播放网址| 欧美精品三级在线观看| 国产精品女上位| 日本不卡视频一二三区| av一区二区三区黑人| 日韩一区二区高清| 亚洲精品高清在线观看| 精品在线观看免费| 欧美色精品在线视频| 中文天堂在线一区| 久久超级碰视频| 在线欧美日韩精品| 国产精品久久久久三级| 国产专区欧美精品| 91麻豆精品国产91久久久久久| 中文字幕在线一区免费| 激情都市一区二区| 欧美精品乱码久久久久久按摩| 国产精品不卡在线观看| 激情小说亚洲一区| 91精品国产欧美一区二区成人 | 久久九九国产精品| 奇米精品一区二区三区在线观看| 99久久精品情趣| 26uuuu精品一区二区| 午夜久久电影网| 91在线无精精品入口| 亚洲国产精品国自产拍av| 国产在线精品一区二区夜色| 欧美另类一区二区三区| 亚洲国产中文字幕| 欧美又粗又大又爽| 亚洲视频每日更新| av一二三不卡影片| 中文字幕亚洲综合久久菠萝蜜| 国产盗摄精品一区二区三区在线| 亚洲精品一线二线三线无人区| 日本色综合中文字幕| 欧美日韩成人高清| 天天综合网天天综合色| 欧洲精品一区二区| 亚洲专区一二三| 日本韩国精品在线| 亚洲乱码中文字幕综合| 欧美中文字幕一区二区三区亚洲| 一区二区三区视频在线观看| 在线日韩av片| 午夜精品国产更新|