msgbindresp.java~22~
来自「SGIP联通sms短信各个版本例子程序下载」· JAVA~22~ 代码 · 共 41 行
JAVA~22~
41 行
package SPAPI;public class MsgBindResp extends MsgHead{ public int Result; // 1 Integer public String Reserve; // 8 Text public MsgBindResp(){ setTotalLen(29); setCmdID(0x80000001); Reserve = new String(); } public MsgBindResp(byte[] ba){ setHead(ba); Result = ba[20]; Reserve = byte2str(ba, 21, 8); } public byte[] getBytes() { byte[] r = new byte[29]; headFill(r); r[20] = (byte)(Result); str2byte(r, Reserve, 21, 8); return r; } public void print() { System.out.print("/"); printHead(); System.out.print("\n"); System.out.print("\\Result=" + Result); System.out.print(" Reserve=\"" + Reserve + "\""); System.out.print("\n"); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?