transmessage.java~81~
来自「SGIP联通sms短信各个版本例子程序下载」· JAVA~81~ 代码 · 共 70 行
JAVA~81~
70 行
package SPAPI;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2002
* Company:
* @author
* @version 1.0
*/
public class TransMessage {
public TransMessage() {
}
public static void main( String[] args ) {
MsgBind mb = new MsgBind();
mb.Name = "openet";
byte[] s = new byte[61];
Bind(mb, s);
for (int i = 0; i < s.length; i++)
{
System.out.print(Integer.toHexString(s[i]) + " ");
System.out.print((char)s[i]);
}
}
static public int Bind(MsgBind mb, byte[] s)
{
byte[] tmp = mb.Name.getBytes();
// mb.
for (int i = 0; i < tmp.length; i++)
{
s[i] = tmp[i];
}
return 0;
}
static public int Unbind()
{
return 0;
}
static public int Submit()
{
return 0;
}
static public int Deliver()
{
return 0;
}
static public int Report()
{
return 0;
}
// static public
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?