⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmpp2activetestresp.java

📁 java支持的短信平台
💻 JAVA
字号:
package com.khan.sms.cmpp2;

import com.khan.sms.MsgID;
import com.khan.util.SocketCommon;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Cmpp2ActiveTestResp extends Cmpp2Data{


    public Cmpp2ActiveTestResp(byte[] data) {

        if (data.length < 12)
            throw new ExceptionInInitializerError("数据包长度小于12字节,包错误!");
        int ioffset = 0;
        TotalLen = SocketCommon.getDWord(data, ioffset);

        if (data.length < 12)
            throw new ExceptionInInitializerError("数据包头Total_Len字段标示长度小于12字节,包头错误!");

        ioffset += 4;
        CommandID = SocketCommon.getDWord(data, ioffset);
        ioffset += 4;
        SeqID = SocketCommon.getDWord(data, ioffset);
        ioffset += 4;
    }

    public byte[] encodeCmpp() {
        return null;
    }

    public Cmpp2Data decodeCmpp() {
        return this;
    }

    public String toString() {
        return "CMPP2_ACTIVE_TEST_RESP";
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -