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

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

?? cmessage.java

?? JAVA手機短信開發(fā)包
?? JAVA
字號:
//	jSMSEngine API.
//	An open-source API package for sending and receiving SMS via a GSM device.
//	Copyright (C) 2002-2006, Thanasis Delenikas, Athens/GREECE
//		Web Site: http://www.jsmsengine.org
//
//	jSMSEngine is a package which can be used in order to add SMS processing
//		capabilities in an application. jSMSEngine is written in Java. It allows you
//		to communicate with a compatible mobile phone or GSM Modem, and
//		send / receive SMS messages.
//
//	jSMSEngine is distributed under the LGPL license.
//
//	This library is free software; you can redistribute it and/or
//		modify it under the terms of the GNU Lesser General Public
//		License as published by the Free Software Foundation; either
//		version 2.1 of the License, or (at your option) any later version.
//	This library is distributed in the hope that it will be useful,
//		but WITHOUT ANY WARRANTY; without even the implied warranty of
//		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//		Lesser General Public License for more details.
//	You should have received a copy of the GNU Lesser General Public
//		License along with this library; if not, write to the Free Software
//		Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//

package org.jsmsengine;

import java.util.*;

/**
	This class encapsulates the basic characteristics of an SMS message. A message
	is further subclassed to an "Incoming" message and an "Outgoing" message.
	<br><br>
	This class is <strong>never</strong> used directly. Please use one of its descendants.

	@see	CIncomingMessage
	@see	CStatusReportMessage
	@see	COutgoingMessage
	@see	CPhoneBook
*/
public class CMessage
{
	public static final int MESSAGE_ENCODING_7BIT = 1;
	public static final int MESSAGE_ENCODING_8BIT = 2;
	public static final int MESSAGE_ENCODING_UNICODE = 3;

	public static final int TYPE_INCOMING = 1;
	public static final int TYPE_OUTGOING = 2;
	public static final int TYPE_STATUS_REPORT = 3;

	private int type;
	protected String id;
	protected int memIndex;
	protected Date date;
	protected String originator;
	protected String recipient;
	protected String text;
	protected int messageEncoding;

	/**
		Default constructor of the class.

		@param	type	the type (incoming/outgoing) of the message.
		@param	date	the creation date of the message.
		@param	originator	the originator's number. Applicable only for incoming messages.
		@param	recipient	the recipient's number. Applicable only for outgoing messages.
		@param	text	the actual text of the message.
		@param	memIndex		the index of the memory location in the GSM device where
						this message is stored. Applicable only for incoming messages.

		<br><br>Notes:<br>
		<ul>
			<li>Phone numbers are represented in their international format (e.g. +306974... for Greece).</li>
			<li>"Recipient" may be an entry from the phonebook.</li>
		</ul>
	*/
	public CMessage(int type, Date date, String originator, String recipient, String text, int memIndex)
	{
		this.type = type;
		this.date = date;
		this.originator = originator;
		this.recipient = recipient;
		this.text = text;
		this.memIndex = memIndex;
		this.messageEncoding = MESSAGE_ENCODING_7BIT;
	}

	/**
		Returns the type of the message. Type is either incoming or outgoing, as denoted
		by the class' static values INCOMING and OUTGOING.

		@return  the type of the message.
	*/
	public int getType() { return type; }

	/**
		Returns the id of the message.

		@return  the id of the message.
	*/
	public String getId() { return id; }

	/**
		Returns the memory index of the GSM device, where the message is stored.
		Applicable only for incoming messages.

		@return  the memory index of the message.
	*/
	public int getMemIndex() { return memIndex; }

	/**
		Returns the date of the message. For incoming messages, this is the sent date.
		For outgoing messages, this is the creation date.

		@return  the date of the message.
	*/
	public Date getDate() { return date; }

	/**
		Returns the Originator of the message.

		@return  the originator of the message.
	*/
	public String getOriginator() { return originator; }

	/**
		Returns the Recipient of the message.

		@return  the recipient of the message.
	*/
	public String getRecipient() { return recipient; }

	/**
		Returns the actual text of the message (ASCII).

		@return  the text of the message.
	*/
	public String getText() { return text; }

	/**
		Returns the text of the message, in hexadecimal format.

		@return  the text of the message (HEX format).
	*/
	public String getHexText() { return CGSMAlphabets.text2Hex(text, CGSMAlphabets.GSM7BITDEFAULT); }

	/**
		Returns the encoding method of the message. Returns of the constants
		MESSAGE_ENCODING_7BIT, MESSAGE_ENCODING_8BIT, MESSAGE_ENCODING_UNICODE.
		This is meaningful only when working in PDU mode.

		@return  the message encoding.
	*/
	public int getMessageEncoding() { return messageEncoding; }

	/**
		Set the id of the message.

		@param	id	the id of the message.
	*/
	public void setId(String id) { this.id = id; }

	/**
		Set the text of the message.

		@param	text	the text of the message.
	*/
	public void setText(String text) { this.text = text; }

	/**
		Set the date of the message.

		@param	date	the date of the message.
	*/
	public void setDate(Date date) { this.date = date; }

	/**
		Set the message encoding. Should be one of the constants
		MESSAGE_ENCODING_7BIT, MESSAGE_ENCODING_8BIT, MESSAGE_ENCODING_UNICODE.
		This is meaningful only when working in PDU mode - default is 7bit.

		@param	messageEncoding	one of the message encoding contants.
	*/
	public void setMessageEncoding(int messageEncoding) { this.messageEncoding = messageEncoding; }

	public String toString()
	{
		String str;

		str = "** GSM MESSAGE **\n";
		str += "  Type: " + (type == TYPE_INCOMING ? "Incoming." : (type == TYPE_OUTGOING ? "Outgoing." : "Status Report.")) + "\n";
		str += "  Id: " + id + "\n";
		str += "  Memory Index: " + memIndex + "\n";
		str += "  Date: " + date + "\n";
		str += "  Originator: " + originator + "\n";
		str += "  Recipient: " + recipient + "\n";
		str += "  Text: " + text + "\n";
		str += "  Hex Text: " + CGSMAlphabets.text2Hex(text, CGSMAlphabets.GSM7BITDEFAULT) + "\n";
		str += "  Encoding: " + messageEncoding + "\n";
		str += "***\n";
		return str;
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费观看在线综合| 国产精品久久久久影院亚瑟| 天天av天天翘天天综合网色鬼国产 | 亚洲九九爱视频| 色婷婷精品大在线视频| 亚洲自拍另类综合| 欧美一区二区私人影院日本| 老色鬼精品视频在线观看播放| 亚洲精品在线三区| 成人免费毛片嘿嘿连载视频| 亚洲黄色尤物视频| 337p亚洲精品色噜噜| 国产毛片一区二区| 亚洲色图另类专区| 欧美久久一二区| 激情六月婷婷综合| 1024成人网| 91精品国产综合久久精品图片| 国产乱淫av一区二区三区 | 欧美亚洲国产一区二区三区va| 天天色综合天天| 久久精品一二三| 一本久久a久久免费精品不卡| 亚洲成av人片一区二区梦乃| 久久久精品国产99久久精品芒果| 色偷偷久久人人79超碰人人澡| 丝袜亚洲另类欧美综合| 欧美国产日本视频| 欧美肥妇bbw| 粉嫩嫩av羞羞动漫久久久| 午夜久久久影院| 国产精品美女久久久久久久网站| 欧美亚洲免费在线一区| 国产精品456露脸| 亚洲成人1区2区| 亚洲国产精品二十页| 在线播放欧美女士性生活| 成人午夜电影网站| 美腿丝袜亚洲综合| 亚洲精品v日韩精品| 久久九九影视网| 欧美伦理电影网| caoporm超碰国产精品| 精彩视频一区二区| 樱桃视频在线观看一区| 国产婷婷精品av在线| 91精品福利在线一区二区三区| 99久久99久久精品免费看蜜桃| 国产一区在线精品| 另类小说一区二区三区| 性感美女极品91精品| 亚洲精品成人精品456| 国产亚洲精品超碰| 欧美成va人片在线观看| 欧美日韩国产成人在线91 | 欧美亚洲综合在线| 99久久99久久精品免费观看 | 日本欧美一区二区| 一区二区国产视频| 1024国产精品| 中文字幕一区二区三区蜜月| 国产婷婷色一区二区三区四区| 精品久久久久久亚洲综合网| 在线成人小视频| 精品视频在线免费| 欧美日韩午夜影院| 国产精品每日更新| 久久婷婷成人综合色| 日韩欧美成人激情| 日韩欧美激情在线| 26uuu亚洲| www激情久久| 久久久午夜精品理论片中文字幕| 日韩一级高清毛片| 日韩欧美你懂的| 欧美一区2区视频在线观看| 欧美日韩成人在线一区| 欧美剧情片在线观看| 欧美在线观看视频在线| 欧日韩精品视频| 欧美性受xxxx黑人xyx性爽| 欧洲一区二区av| 欧美日韩在线电影| 91精品国产一区二区| 9191久久久久久久久久久| 91麻豆精品国产无毒不卡在线观看 | 亚洲国产精品成人久久综合一区| 国产亚洲午夜高清国产拍精品 | 成人开心网精品视频| 成人福利视频网站| www.66久久| 欧美色男人天堂| 91精品国产麻豆国产自产在线 | av资源网一区| 色网综合在线观看| 在线成人午夜影院| 久久久美女毛片| 亚洲欧美日韩小说| 亚洲超碰精品一区二区| 奇米亚洲午夜久久精品| 国产一区二区三区美女| 国产suv一区二区三区88区| jlzzjlzz欧美大全| 欧美日韩国产乱码电影| 精品国精品自拍自在线| 国产精品久久久久久户外露出| 亚洲三级免费电影| 午夜精品免费在线观看| 国产一区二区不卡老阿姨| 99精品欧美一区二区三区小说 | 91麻豆视频网站| 欧美高清视频www夜色资源网| 日韩一区二区精品在线观看| 中文字幕第一区综合| 亚洲影院理伦片| 狠狠色综合日日| 色综合久久久久久久| 日韩午夜激情免费电影| 中文字幕久久午夜不卡| 五月综合激情婷婷六月色窝| 国产精品一区专区| 欧美日韩高清一区二区不卡| 国产亚洲va综合人人澡精品| 亚洲一区在线电影| 国产精品一区二区在线看| 色哟哟一区二区在线观看| 欧美videos大乳护士334| 综合电影一区二区三区| 久久精品国产第一区二区三区| 成人福利电影精品一区二区在线观看| 欧美日本视频在线| 国产精品视频一二三区| 日韩精品亚洲一区| 北条麻妃国产九九精品视频| 欧美va亚洲va在线观看蝴蝶网| 一区二区国产盗摄色噜噜| 国产成人精品影院| 91精品国产高清一区二区三区| 中文字幕一区二区在线播放| 精品在线一区二区| 欧美视频一区二区三区| 亚洲女女做受ⅹxx高潮| 国产成人久久精品77777最新版本| 欧美男同性恋视频网站| 一区二区三区欧美日韩| 成人免费精品视频| 久久看人人爽人人| 蜜桃一区二区三区在线| 欧美视频一区在线观看| 亚洲猫色日本管| 99久久精品免费精品国产| 国产欧美日韩在线视频| 紧缚奴在线一区二区三区| 在线不卡的av| 亚洲成人tv网| 欧美在线啊v一区| 亚洲精品免费在线播放| 成人动漫一区二区在线| 国产网红主播福利一区二区| 久久国产精品99精品国产 | 久久综合久久综合久久| 免费在线观看一区| 日韩一区二区在线观看| 婷婷国产在线综合| 在线不卡a资源高清| 日韩中文字幕麻豆| 日韩丝袜美女视频| 久久国产精品无码网站| 日韩精品一区二区三区视频| 六月丁香婷婷久久| 精品国产一区二区三区四区四| 免播放器亚洲一区| 日韩欧美色综合| 紧缚奴在线一区二区三区| 久久精品一区八戒影视| 国产99久久久久| 中文字幕亚洲欧美在线不卡| av男人天堂一区| 亚洲一区中文在线| 欧美日韩国产a| 免费精品视频在线| 久久久久综合网| 99久久精品情趣| 亚洲国产欧美另类丝袜| 欧美精品久久一区二区三区| 蜜桃精品视频在线观看| 国产日韩欧美在线一区| eeuss鲁片一区二区三区 | 欧美最猛性xxxxx直播| 亚洲电影一级黄| 日韩欧美黄色影院| 岛国精品一区二区| 一区二区三区日韩| 日韩一区二区三区av| 在线综合亚洲欧美在线视频| 成人免费精品视频| 成人性视频免费网站| 国产婷婷色一区二区三区| 国产精品欧美极品| 国产日韩欧美a|