資源簡介
SMPP(short message peer to peer)協議是一個開放的消息轉換協議;它定義了一系列操作的協議數據單元(PDUS)和當SMPP運行時ESMS應用系統與SMSC之間交換的數據格式。里面為java可運行代碼,其中可以自行開啟服務端和客戶端通信。

代碼片段和文件信息
package?org.smpp.charset;
import?java.nio.CharBuffer;
import?java.nio.ByteBuffer;
import?java.nio.charset.Charset;
import?java.nio.charset.CharsetEncoder;
import?java.nio.charset.CharsetDecoder;
import?java.nio.charset.CoderResult;
import?java.util.HashMap;
import?java.util.logging.Logger;
/**
?*?A?Charset?implementation?for?Gsm?7-bit?default?and?extended?character?set
?*?See?GSM?03.38
?*?
?*?@author?Sverker?Abrahamsson
?*?@version?$Id:?Gsm7BitCharset.java?90?2011-04-19?22:07:52Z?sverkera?$
?*/
public?class?Gsm7BitCharset?extends?Charset?{
private?boolean?debug?=?false;
//?HashMap‘s?used?for?encoding?and?decoding
protected?static?HashMap?defaultEncodeMap?=?new?HashMap();
protected?static?HashMap?defaultDecodeMap?=?new?HashMap();
protected?static?HashMap?extEncodeMap?=?new?HashMap();
protected?static?HashMap?extDecodeMap?=?new?HashMap();
//?Data?to?populate?the?hashmaps?with
private?static?final?object[][]?gsmCharacters?=?{?
{?“@“??????new?Byte((byte)?0x00)?}
{?“£“??????new?Byte((byte)?0x01)?}
{?“$“??????new?Byte((byte)?0x02)?}
{?“¥“??????new?Byte((byte)?0x03)?}
{?“è“??????new?Byte((byte)?0x04)?}
{?“é“??????new?Byte((byte)?0x05)?}
{?“ù“??????new?Byte((byte)?0x06)?}
{?“ì“??????new?Byte((byte)?0x07)?}
{?“ò“??????new?Byte((byte)?0x08)?}
{?“?“??????new?Byte((byte)?0x09)?}
{?“\n“?????new?Byte((byte)?0x0a)?}
{?“?“??????new?Byte((byte)?0x0b)?}
{?“?“??????new?Byte((byte)?0x0c)?}
{?“\r“?????new?Byte((byte)?0x0d)?}
{?“?“??????new?Byte((byte)?0x0e)?}
{?“?“??????new?Byte((byte)?0x0f)?}
{?“\u0394“?new?Byte((byte)?0x10)?}
{?“_“??????new?Byte((byte)?0x11)?}
{?“\u03A6“?new?Byte((byte)?0x12)?}
{?“\u0393“?new?Byte((byte)?0x13)?}
{?“\u039B“?new?Byte((byte)?0x14)?}
{?“\u03A9“?new?Byte((byte)?0x15)?}
{?“\u03A0“?new?Byte((byte)?0x16)?}
{?“\u03A8“?new?Byte((byte)?0x17)?}
{?“\u03A3“?new?Byte((byte)?0x18)?}
{?“\u0398“?new?Byte((byte)?0x19)?}
{?“\u039E“?new?Byte((byte)?0x1a)?}
{?“\u001B“?new?Byte((byte)?0x1b)?}?//?27?is?Escape?character
{?“?“??????new?Byte((byte)?0x1c)?}
{?“?“??????new?Byte((byte)?0x1d)?}
{?“?“??????new?Byte((byte)?0x1e)?}
{?“é“??????new?Byte((byte)?0x1f)?}
{?“\u0020“?new?Byte((byte)?0x20)?}
{?“!“??????new?Byte((byte)?0x21)?}
{?“\““?????new?Byte((byte)?0x22)?}
{?“#“??????new?Byte((byte)?0x23)?}
{?“¤“??????new?Byte((byte)?0x24)?}
{?“%“??????new?Byte((byte)?0x25)?}
{?“&“??????new?Byte((byte)?0x26)?}
{?“‘“??????new?Byte((byte)?0x27)?}
{?“(“??????new?Byte((byte)?0x28)?}
{?“)“??????new?Byte((byte)?0x29)?}
{?“*“??????new?Byte((byte)?0x2a)?}
{?“+“??????new?Byte((byte)?0x2b)?}
{?““??????new?Byte((byte)?0x2c)?}
{?“-“??????new?Byte((byte)?0x2d)?}
{?“.“??????new?Byte((byte)?0x2e)?}
{?“/“??????new?Byte((byte)?0x2f)?}
{?“0“??????new?Byte((byte)?0x30)?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????513??2014-10-15?12:24??SmppClientServer\.classpath
?????文件????????362??2014-10-15?10:40??SmppClientServer\.classpath.bak
?????文件????????321??2014-10-15?10:39??SmppClientServer\.myme
?????文件???????1422??2014-10-15?10:48??SmppClientServer\.project
?????文件????????500??2014-10-15?10:39??SmppClientServer\.settings\.jsdtscope
?????文件????????330??2014-10-15?10:39??SmppClientServer\.settings\org.eclipse.jdt.core.prefs
?????文件?????????49??2014-10-15?10:39??SmppClientServer\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2014-10-15?10:39??SmppClientServer\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????28555??2014-10-15?16:36??SmppClientServer\sim.dbg0
?????文件???????1960??2014-10-15?16:35??SmppClientServer\sim.evt0
?????文件??????11766??2014-10-15?10:38??SmppClientServer\src\main\java\org\smpp\charset\Gsm7BitCharset.java
?????文件???????2036??2014-10-15?10:38??SmppClientServer\src\main\java\org\smpp\charset\Gsm7BitCharsetProvider.java
?????文件??????14663??2014-10-15?16:35??SmppClientServer\src\main\java\org\smpp\client\SMPPSender.java
?????文件???????3521??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\Debug.java
?????文件???????2337??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\DefaultDebug.java
?????文件???????1497??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\DefaultEvent.java
?????文件???????1310??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\Event.java
?????文件???????6306??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\FileDebug.java
?????文件???????1644??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\FileEvent.java
?????文件???????4734??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\FileLog.java
?????文件???????1963??2014-10-09?11:10??SmppClientServer\src\main\java\org\smpp\debug\LoggerDebug.java
?????文件???????4207??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\Address.java
?????文件???????2342??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\AddressRange.java
?????文件???????1059??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\AlertNotification.java
?????文件????????770??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\BindReceiver.java
?????文件????????605??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\BindReceiverResp.java
?????文件???????3123??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\BindRequest.java
?????文件???????2397??2014-10-15?10:42??SmppClientServer\src\main\java\org\smpp\pdu\BindResponse.java
?????文件????????781??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\BindTransciever.java
?????文件????????613??2014-10-09?11:26??SmppClientServer\src\main\java\org\smpp\pdu\BindTranscieverResp.java
............此處省略282個文件信息
評論
共有 條評論