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

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

?? mmmessage.java

?? 用于開(kāi)發(fā)mms應(yīng)用的Java庫(kù)
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is the Tambur MMS library.
 *
 * The Initial Developer of the Original Code is FlyerOne Ltd.
 * Portions created by the Initial Developer are Copyright (C) 2005
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 * 	Anders Lindh <alindh@flyerone.com>
 *
 * ***** END LICENSE BLOCK ***** */

package net.tambur.mms;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
 
/**
 * This class represents a multimedia message. A multimedia message consists
 * of several parts, each containing headers and body (as in a mime message). 
 * <p>
 * The resulting message is encoded according to [MMSEncapsulation] with well-known
 * headers and corresponding values encoded according to [WAPWSP].
 * <p>
 * This class fully represents a MMS message (as specified in [MMSEncapsulation]), 
 * encoding and decoding functions are done by the MMEncoder and MMDecoder classes. 
 * <p>
 * References: 
 * <p>
 * <a href="http://www1.wapforum.org/tech/documents/WAP-209-MMSEncapsulation-20020105-a.pdf">
 * [MMSEncapsulation] WAP-209-MMSEncapsulation-20020105-a 
 * </a><br>
 * <a href="http://www1.wapforum.org/tech/documents/WAP-230-WSP-20010705-a.pdf">
 * [WAPWSP] WAP-230-WSP-20010705-a</a> 
 * <p>
 * 
 * <strong>Example 1: Composing a message</strong><p>
 * <pre>
 * 	MMMessage msg = new MMMessage();
 * 	msg.setMessageType(MMMessage.MESSAGE_TYPE_M_SEND_REQ);
 * 	msg.setTransactionId("0001");
 * 	msg.setFrom("+358405134265/TYPE=PLMN");
 * 	msg.setSubject("This is an example");
 * 
 * 	// add content
 * 	msg.addPart("text/smil", "<smil></smil>".getBytes(), false, null, null)
 * 
 * 	// print out (or do whatever)
 * 	System.out.println(msg); 
 * </pre>
 * <p>
 *
 * <strong>Example 2: Reading a message from file (decoding)</strong><p>
 * <pre>
 * 	String filename = "input.mms";
 * 	File f = new File(filename);
 *	
 * 	try {
 * 		FileInputStream fis = new FileInputStream(f);
 *			
 *		byte[] data = new byte[(int) f.length()];
 *		fis.read(data);
 *		fis.close();
 *			
 *		MMMessage msg = MMDecoder.decode(data);
 *
 *	} catch (Exception e) {
 *		System.out.println(e);
 *	} 
 * </pre>
 * <p>
 * <strong>Example 3: Writing (encoding) a message</strong><p> 
 * <pre>
 *	MMessage msg = ... // a created MMMessage
 *   
 * 	try {
 * 		File f = new File("output.mms");
 *		byte[] out = msg.encode();
 *		FileOutputStream fos = new FileOutputStream(f);
 *		fos.write(out);
 *		fos.flush();
 *		fos.close(); 
 * 	} catch (Exception e) {
 * 		System.out.println(e);
 * 	}
 * </pre>
 * <p>
 * 
 * @author Anders Lindh
 * @copyright Copyright FlyerOne Ltd 2005
 * @version $Revision: 1.1.1.1 $ $Date: 2005/04/14 09:04:10 $
 * @see MimeMessage
 *
 */
public class MMMessage extends MimeMessage implements Serializable {

	protected ArrayList bcc = null;
	protected ArrayList cc = null;
	protected String contentLocation = null;
	protected Date date = null;
	protected Boolean deliveryReport = null;
	protected Date deliveryTime = null;
	protected boolean deliveryTimeAbsolute = true;
	protected Date expiry = null;	
	protected boolean expiryAbsolute = true;
	protected String from = null;
	protected int messageClass = -1;
	protected String messageId = null;
	protected int messageType = -1;
	protected long messageSize = -1;
	protected int version = -1;
	protected int priority = -1;
	protected Boolean readReply = null;
	protected Boolean reportAllowed = null;
	protected int responseStatus = -1;
	protected String responseText = null;
	protected Boolean senderVisibility = null;
	protected int status = -1;
	protected String subject = null;
	protected ArrayList to = null; 
	protected String transactionId = null;	
	
	//protected boolean bModified = false; // wether this class has been modofied
	//protected byte[] rawContent = null;

	/**
	 * Set bcc (blind carbon copy). This is a shotcut to clearBcc(), addBccAddress(...)
	 */	
	public void setBcc(String s) { 
		clearBcc();
		addBccAddress(s);
	}
	
	/**
	 * Get Bcc (blind carbon copy) addresses, returns an empty ArrayList if none is set
	 */
	public ArrayList getBcc() { if (bcc == null) return new ArrayList(); else return bcc; }
	
	/**
	 * Remove all Bcc recipients
	 */
	public void clearBcc() { this.bcc = null; }
	
	/**
	 * Add a Bcc recipient
	 */
	public void addBccAddress(String s) { if (bcc == null) bcc = new ArrayList(); bcc.add(s); }

	/**
	 * Set Cc (carbon copy) field. This is a shotcut to clearCc(), addCcAddress(...)
	 */	
	public void setCc(String s) { 
		clearCc();
		addCcAddress(s);
	}

	/**
	 * Get Cc (carbon copy) recipient addresses, returns an empty ArrayList if none is set
	 */	
	public ArrayList getCc() { if (cc == null) return new ArrayList(); else return cc; }
	
	/**
	 * Remove all Cc recipients
	 */
	public void clearCc() { this.cc = null; }
	
	/**
	 * Add a Cc recipient
	 */	
	public void addCcAddress(String s) { if (cc == null) cc = new ArrayList(); cc.add(s); }

	/**
	 * Set Content-Location
	 */	
	public void setContentLocation(String loc) { this.contentLocation = loc; }
	
	/**
	 * Return Content-Location
	 */	
	public String getContentLocation() { return this.contentLocation; }
		
	/**
	 * Set Date
	 */
	public void setDate(Date date) { this.date = date; }
	
	/**
	 * Return Date
	 */
	public Date getDate() { return this.date; }
	
	/**
	 * Return string representation of date
	 */
	public String getDateStr() { return MMDecoder.formatDate(this.date); }

	/**
	 * Set X-MMS-Delivery-Report. Set to null to disable
	 */
	public void setDeliveryReport(Boolean b) { this.deliveryReport = b; }
	
	/**
	 * Return X-MMS-Delivery-Report. False is returned if null.
	 */
	public boolean getDeliveryReport() { if (deliveryReport == null) return false; return this.deliveryReport.booleanValue(); }

	/**
	 * Set X-MMS-Delivery-Time
	 */
	public void setDeliveryTime(Date date) { this.deliveryTime = date; }
	
	public void setDeliveryTimeAbsolute(boolean b) { this.deliveryTimeAbsolute = b; }
	public boolean getDeliveryTimeAbsolute() { return this.deliveryTimeAbsolute; }
	
	/**
	 * Get X-MMS-Delivery-Time
	 */
	public Date getDeliveryTime() { return this.deliveryTime; }
	
	/**
	 * Get X-MMS-Delivery-Time as String
	 */
	public String getDeliveryTimeStr() { 
		if (deliveryTimeAbsolute) return MMDecoder.formatDate(this.deliveryTime); else
			return MMDecoder.formatDate(new Date(this.deliveryTime.getTime() + System.currentTimeMillis()));
	}

	/**
	 * Set X-MMS-Expiry
	 */
	public void setExpiry(Date date) { this.expiry = date; }
	
	/**
	 * Return X-MMS-Expiry
	 */
	public Date getExpiry() { return this.expiry; }

	public void setExpiryAbsolute(boolean b) { this.expiryAbsolute = b; }
	public boolean getExpiryAbsolute() { return this.expiryAbsolute; }
	
	/**
	 * Return X-MMS-Expiry time as String
	 */
	public String getExpiryStr() { 
		if (expiryAbsolute) return MMDecoder.formatDate(this.expiry); else
			return MMDecoder.formatDate(new Date(this.expiry.getTime() + System.currentTimeMillis()));
	}

	/**
	 * Set From address
	 */
	public void setFrom(String from) { this.from = from; }
	
	/**
	 * Get From address
	 */
	public String getFrom() { return this.from; }

	/**
	 * Set X-MMS-Message-Class
	 */
	public void setMessageClass(int c) { messageClass = c; }
	
	/**
	 * Return X-MMS-Message-Class
	 */
	public int getMessageClass() { if (messageClass == -1) return 0; else return messageClass; }
	
	/**
	 * Return string representation of X-MMS-Message-Class
	 */
	public String getMessageClassStr() { if (messageClass == -1) return null; return MMConstants.MESSAGE_CLASSES[messageClass]; }

	/**
	 * Set Message-ID
	 */
	public void setMessageId(String id) { this.messageId = id; }
	
	/**
	 * Return Message-ID
	 */
	public String getMessageId() { if (messageId == null) return ""; else return this.messageId; }
	
	/**
	 * set X-MMS-Message-Type
	 */
	public void setMessageType(int type) { messageType = type; }
	
	/**
	 * Return X-MMS-Message-Type
	 */
	public int getMessageType() { return messageType; }

	/**
	 * Return string representation of X-MMS-Message-Type
	 */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕亚洲在| 国产一区二区三区黄视频| 天天做天天摸天天爽国产一区| 国产成人福利片| 国产日韩v精品一区二区| 亚洲v中文字幕| 久久嫩草精品久久久精品一| 国产九色sp调教91| 一区二区三区四区av| 日本高清无吗v一区| 午夜视频在线观看一区二区| 伊人色综合久久天天| 在线播放视频一区| 国模冰冰炮一区二区| 日本一区二区久久| 色美美综合视频| 色婷婷综合中文久久一本| 日韩经典一区二区| 欧美国产激情二区三区| 国产精品蜜臀av| 91日韩一区二区三区| 五月天激情综合| 麻豆精品在线看| 国产精品久久午夜| 99国产精品一区| 国产农村妇女毛片精品久久麻豆| 久久免费美女视频| 欧美sm美女调教| 国产成人综合在线| 99久久国产免费看| 日韩一区二区三区视频| 天天影视网天天综合色在线播放| 午夜精品一区二区三区电影天堂 | 欧美激情在线观看视频免费| 中文字幕av在线一区二区三区| 久久亚洲精品小早川怜子| 欧美日韩国产首页| 色综合天天做天天爱| 国产高清精品久久久久| 91香蕉视频在线| 日韩欧美一区电影| 日韩精品一区在线观看| 国产片一区二区| 亚洲第四色夜色| 国产91富婆露脸刺激对白| 天天综合天天综合色| 国产成人av网站| 欧美日韩精品专区| 中文字幕第一区综合| 天使萌一区二区三区免费观看| 国产成人在线网站| 欧美精品18+| 亚洲欧美一区二区不卡| 亚洲精品视频自拍| 国产美女av一区二区三区| 欧美色精品在线视频| 在线观看av不卡| 在线免费一区三区| 国产三级欧美三级日产三级99 | 久久久久久亚洲综合影院红桃| 亚洲一区二区三区视频在线 | 精品理论电影在线| 亚洲高清在线视频| 日本不卡123| 韩国v欧美v亚洲v日本v| 欧美人伦禁忌dvd放荡欲情| 中文字幕亚洲欧美在线不卡| 韩国中文字幕2020精品| 精品少妇一区二区三区在线播放 | 中文文精品字幕一区二区| 久久狠狠亚洲综合| 成人av影视在线观看| 91丝袜呻吟高潮美腿白嫩在线观看| 日韩视频免费观看高清完整版| 亚洲欧美成人一区二区三区| 成人短视频下载| 亚洲国产成人午夜在线一区| 久久成人18免费观看| 欧美一区二区三区男人的天堂| 欧美色窝79yyyycom| 欧美tk—视频vk| 另类小说一区二区三区| 日韩三级在线观看| 蜜桃视频在线观看一区二区| 欧美成人r级一区二区三区| 美国毛片一区二区| 久久只精品国产| 成人免费视频免费观看| 欧美精品一级二级三级| 日韩在线卡一卡二| 精品福利av导航| 亚洲激情五月婷婷| 在线视频国内一区二区| 亚洲综合一二区| 91精品麻豆日日躁夜夜躁| 国产精品传媒入口麻豆| 91麻豆免费看| 日韩影院精彩在线| 精品国产精品一区二区夜夜嗨| 国内不卡的二区三区中文字幕| 国产拍欧美日韩视频二区| 色综合久久88色综合天天 | 日韩影院在线观看| 国产午夜精品福利| 色噜噜狠狠成人中文综合| 日韩激情一区二区| 国产清纯白嫩初高生在线观看91 | 色综合天天综合色综合av| 亚洲成av人在线观看| www久久精品| 色一区在线观看| 美女一区二区视频| 亚洲天堂网中文字| 成人毛片在线观看| 亚洲gay无套男同| 久久久久久免费毛片精品| 99久久综合99久久综合网站| 国产视频不卡一区| 88在线观看91蜜桃国自产| 国产盗摄一区二区| 日日夜夜精品视频免费| 国产精品久久久久久久午夜片| 欧美日韩精品一二三区| 成人一区二区三区视频在线观看| 午夜亚洲福利老司机| 国产精品久久久久久久裸模| 欧美成人vr18sexvr| 欧美日韩精品三区| 91亚洲国产成人精品一区二区三| 美脚の诱脚舐め脚责91| 亚洲福中文字幕伊人影院| 国产女主播一区| 日韩午夜电影在线观看| 欧美网站一区二区| 91麻豆免费观看| 国产成人综合自拍| 国产综合色产在线精品| 日本特黄久久久高潮| 日韩欧美在线影院| 欧美三级中文字幕| 色丁香久综合在线久综合在线观看| 久久成人麻豆午夜电影| 午夜电影网一区| 亚洲国产成人91porn| 亚洲视频香蕉人妖| 综合在线观看色| 国产精品高潮久久久久无| 久久精品视频一区| 久久精品一区八戒影视| 精品国精品国产尤物美女| 欧美久久久久久久久| 欧美三级日韩在线| 欧美美女直播网站| 欧美另类z0zxhd电影| 欧美日韩亚洲另类| 欧美性xxxxx极品少妇| 在线观看国产日韩| 欧美日韩国产系列| 欧美精品成人一区二区三区四区| 欧美日韩一级大片网址| 欧美剧情电影在线观看完整版免费励志电影 | 91蜜桃免费观看视频| 99国产麻豆精品| 色婷婷激情综合| 欧美三级日韩在线| 欧美一二三在线| 久久久高清一区二区三区| 国产精品视频九色porn| 亚洲欧美自拍偷拍色图| 亚洲精品精品亚洲| 午夜精品影院在线观看| 久久精品国产精品亚洲综合| 国产精品一区在线观看乱码| 成人久久视频在线观看| 色天天综合久久久久综合片| 欧美日韩精品一区二区三区四区 | 蜜桃av一区二区在线观看| 久草在线在线精品观看| 亚洲色图第一区| 亚洲一区二区三区四区在线观看 | 午夜精彩视频在线观看不卡| 日本午夜精品一区二区三区电影| 麻豆免费精品视频| 9i看片成人免费高清| 欧美综合色免费| 日韩精品一区二区三区视频播放| 久久久精品综合| 1区2区3区国产精品| 婷婷中文字幕综合| 成人一二三区视频| 欧美精品777| 亚洲欧洲三级电影| 日本不卡一二三区黄网| 成人晚上爱看视频| 91精品国产一区二区三区香蕉 | 亚洲丝袜美腿综合| 美女国产一区二区三区| 97久久精品人人爽人人爽蜜臀| 欧美精品aⅴ在线视频| 亚洲三级在线看|