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

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

?? bytearraydatasource.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. *//* * @(#)ByteArrayDataSource.java	1.9 07/05/14 */package javax.mail.util;import java.io.*;import javax.activation.*;import javax.mail.internet.*;/** * A DataSource backed by a byte array.  The byte array may be * passed in directly, or may be initialized from an InputStream * or a String. * * @since JavaMail 1.4 * @author John Mani * @author Bill Shannon * @author Max Spivak */public class ByteArrayDataSource implements DataSource {    private byte[] data;	// data    private int len = -1;    private String type;	// content-type    private String name = "";    static class DSByteArrayOutputStream extends ByteArrayOutputStream {	public byte[] getBuf() {	    return buf;	}	public int getCount() {	    return count;	}    }    /**     * Create a ByteArrayDataSource with data from the     * specified InputStream and with the specified MIME type.     * The InputStream is read completely and the data is     * stored in a byte array.     *     * @param	is	the InputStream     * @param	type	the MIME type     * @exception	IOException	errors reading the stream     */    public ByteArrayDataSource(InputStream is, String type) throws IOException {	DSByteArrayOutputStream os = new DSByteArrayOutputStream();	byte[] buf = new byte[8192];	int len;	while ((len = is.read(buf)) > 0)	    os.write(buf, 0, len);	this.data = os.getBuf();	this.len = os.getCount();	/*	 * ByteArrayOutputStream doubles the size of the buffer every time	 * it needs to expand, which can waste a lot of memory in the worst	 * case with large buffers.  Check how much is wasted here and if	 * it's too much, copy the data into a new buffer and allow the	 * old buffer to be garbage collected.	 */	if (this.data.length - this.len > 256*1024) {	    this.data = os.toByteArray();	    this.len = this.data.length;	// should be the same	}        this.type = type;    }    /**     * Create a ByteArrayDataSource with data from the     * specified byte array and with the specified MIME type.     *     * @param	data	the data     * @param	type	the MIME type     */    public ByteArrayDataSource(byte[] data, String type) {        this.data = data;	this.type = type;    }    /**     * Create a ByteArrayDataSource with data from the     * specified String and with the specified MIME type.     * The MIME type should include a <code>charset</code>     * parameter specifying the charset to be used for the     * string.  If the parameter is not included, the     * default charset is used.     *     * @param	data	the String     * @param	type	the MIME type     * @exception	IOException	errors reading the String     */    public ByteArrayDataSource(String data, String type) throws IOException {	String charset = null;	try {	    ContentType ct = new ContentType(type);	    charset = ct.getParameter("charset");	} catch (ParseException pex) {	    // ignore parse error	}	if (charset == null)	    charset = MimeUtility.getDefaultJavaCharset();	// XXX - could convert to bytes on demand rather than copying here	this.data = data.getBytes(charset);	this.type = type;    }    /**     * Return an InputStream for the data.     * Note that a new stream is returned each time     * this method is called.     *     * @return		the InputStream     * @exception	IOException	if no data has been set     */    public InputStream getInputStream() throws IOException {	if (data == null)	    throw new IOException("no data");	if (len < 0)	    len = data.length;	return new SharedByteArrayInputStream(data, 0, len);    }    /**     * Return an OutputStream for the data.     * Writing the data is not supported; an <code>IOException</code>     * is always thrown.     *     * @exception	IOException	always     */    public OutputStream getOutputStream() throws IOException {	throw new IOException("cannot do this");    }    /**     * Get the MIME content type of the data.     *     * @return	the MIME type     */    public String getContentType() {        return type;    }    /**     * Get the name of the data.     * By default, an empty string ("") is returned.     *     * @return	the name of this data     */    public String getName() {        return name;    }    /**     * Set the name of the data.     *     * @param	name	the name of this data     */    public void setName(String name) {	this.name = name;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线视频免费| 久久夜色精品国产噜噜av | 中文无字幕一区二区三区| 欧美电影在哪看比较好| 欧美亚洲高清一区二区三区不卡| jizzjizzjizz欧美| 波多野结衣一区二区三区| www.欧美精品一二区| 91污片在线观看| 在线亚洲免费视频| 欧美三区在线视频| 欧美高清精品3d| 欧美成人综合网站| 久久美女艺术照精彩视频福利播放 | 精品免费视频.| 久久久精品影视| 中文字幕在线一区免费| 亚洲男人的天堂在线观看| 亚洲精选免费视频| 日韩电影在线免费观看| 日本韩国精品在线| 欧美日韩一区二区三区在线 | 日韩和欧美一区二区三区| 日韩精品久久理论片| 精品亚洲免费视频| 国产丶欧美丶日本不卡视频| 国产成人av福利| 色综合久久中文综合久久牛| 欧美日韩亚洲综合在线| 日韩欧美在线网站| 中文字幕免费在线观看视频一区| 樱花草国产18久久久久| 日本在线播放一区二区三区| 国产乱子伦视频一区二区三区| av在线这里只有精品| 制服丝袜日韩国产| 国产三级精品视频| 亚洲第一电影网| 国产电影一区二区三区| 国产人成一区二区三区影院| 亚洲成人av福利| 九九**精品视频免费播放| bt7086福利一区国产| 3d动漫精品啪啪1区2区免费| 国产精品午夜电影| 天天色天天操综合| 99国产精品国产精品久久| 91精品蜜臀在线一区尤物| 中文字幕国产一区二区| 日韩电影在线观看电影| 91在线视频网址| 精品日产卡一卡二卡麻豆| 亚洲二区在线观看| 波多野结衣中文字幕一区| 日韩一级免费观看| 一区二区三区欧美亚洲| 国产精品亚洲一区二区三区妖精 | 欧美三级三级三级爽爽爽| 精品久久久三级丝袜| 视频一区国产视频| 色综合久久久久久久久| 中文字幕精品综合| 精品一区二区三区av| 欧美日韩不卡一区二区| 亚洲激情欧美激情| 色综合久久综合网97色综合| 国产精品视频一区二区三区不卡| 久久草av在线| 日韩亚洲欧美在线观看| 亚瑟在线精品视频| 欧美亚洲一区二区三区四区| 久久伊人蜜桃av一区二区| 麻豆精品视频在线观看免费 | 国产美女主播视频一区| 欧美精选午夜久久久乱码6080| 亚洲蜜桃精久久久久久久| 成人精品一区二区三区中文字幕| 久久久精品中文字幕麻豆发布| 久久97超碰国产精品超碰| 日韩一区二区不卡| 青青国产91久久久久久 | 秋霞午夜av一区二区三区| 欧美精品日韩一本| 日本不卡视频一二三区| 7777精品伊人久久久大香线蕉完整版 | 国产成人av一区| 国产精品国产三级国产普通话99| 成人av高清在线| 亚洲欧美日韩一区二区| 在线观看日韩av先锋影音电影院| 亚洲精品国产精华液| 在线观看亚洲成人| 爽好多水快深点欧美视频| 欧美一区二区三区日韩| 国内国产精品久久| 国产精品久久久久影院亚瑟| 日本精品一区二区三区四区的功能| 亚洲欧美电影院| 欧美美女喷水视频| 精品亚洲国内自在自线福利| 国产精品污网站| 欧美自拍偷拍一区| 日韩制服丝袜先锋影音| 久久综合九色综合97_久久久| 豆国产96在线|亚洲| 一区二区三区四区激情| 日韩午夜av一区| 成人av在线一区二区| 亚洲图片有声小说| 久久网站热最新地址| 99精品欧美一区二区蜜桃免费| 亚洲午夜激情av| 精品福利av导航| 一本久久精品一区二区| 九一九一国产精品| 亚洲人精品一区| 精品少妇一区二区三区在线视频 | 777奇米成人网| 成人精品国产福利| 日本va欧美va精品| 亚洲天堂网中文字| 精品国产伦一区二区三区观看方式 | 天天操天天色综合| 国产精品美女久久久久aⅴ| 欧美日韩成人一区二区| 成人国产一区二区三区精品| 麻豆精品视频在线观看| 亚洲五码中文字幕| 中文字幕亚洲不卡| 精品卡一卡二卡三卡四在线| 欧美性感一类影片在线播放| 懂色中文一区二区在线播放| 日韩中文字幕不卡| 亚洲一区免费观看| 中文字幕一区二区三区在线不卡| 欧美va在线播放| 欧美日韩国产综合一区二区| 99re热这里只有精品免费视频| 国产精品影视网| 日本亚洲天堂网| 五月婷婷久久丁香| 亚洲综合激情网| 一区二区三区精品| 亚洲激情一二三区| 一区在线播放视频| 中文字幕巨乱亚洲| 欧美国产一区视频在线观看| 久久久亚洲高清| 久久先锋影音av鲁色资源网| 欧美电视剧在线观看完整版| 日韩视频免费观看高清完整版在线观看| 91啦中文在线观看| 91小视频在线免费看| 成人av免费网站| 色综合久久综合| 在线免费观看一区| 欧美无人高清视频在线观看| 欧美自拍丝袜亚洲| 欧美人体做爰大胆视频| 欧美精品久久一区| 日韩欧美中文字幕精品| 日韩视频在线永久播放| 日韩免费看网站| 精品久久国产97色综合| www久久精品| 国产日韩影视精品| 136国产福利精品导航| 中文字幕一区三区| 亚洲国产欧美日韩另类综合| 日本亚洲视频在线| 极品少妇xxxx精品少妇偷拍| 国产高清久久久| av亚洲精华国产精华精华| 在线观看日产精品| 日韩欧美一区二区免费| 日韩亚洲电影在线| 国产精品女主播在线观看| 亚洲精品成a人| 免费成人深夜小野草| 国产精品 日产精品 欧美精品| 99在线热播精品免费| 欧美日韩免费视频| 久久久久久久久99精品| 亚洲日本在线a| 麻豆国产精品777777在线| 成人午夜电影小说| 欧美日韩一区不卡| 久久久久国产精品麻豆ai换脸| 一区二区在线观看视频在线观看| 视频一区视频二区中文| 成人久久久精品乱码一区二区三区| 欧美色图第一页| 久久奇米777| 午夜视频一区在线观看| 国产美女在线精品| 欧美日韩国产综合一区二区三区| 久久影音资源网| 日韩avvvv在线播放| 99热99精品| 精品盗摄一区二区三区|