sgip_bindresp.java~5~

来自「短信开发汇总」· JAVA~5~ 代码 · 共 60 行

JAVA~5~
60
字号
package smsproc.protocol.sgip;

/**
 * <p>Title: smsproc</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author vienna
 * @version 1.0
 */
import java.io.*;

public class SGIP_BindResp {
    private SGIP_Head head=new SGIP_Head();
    private int Result;
    private byte[] Reserve;
    public SGIP_BindResp() {
        super();
    }
    public int getCommandID(){
        return head.RequestID;
    }
    public int getResult(){
        return Result;
    }
    public long getSeq1(){
        return head.Seq1;
    }
    public int getSeq2(){
        return head.Seq2;
    }
    public int getSeq3(){
        return head.Seq3;
    }
    public int parseBuffer(byte[] buffer){
        DataInputStream data=new DataInputStream(new ByteArrayInputStream(buffer));
        try{
            head.PacketLength=data.readInt();
            head.RequestID=data.readInt();
            head.Seq1=data.readInt();
            head.Seq2=data.readInt();
            head.Seq1=data.readInt();
            Result=data.readInt();
            Reserve=new byte[8];
            for(int i=0;i<8;i++){
                Reserve[i]=data.readByte();
            }
        }
        catch(Exception ex){
            GlobalVar.WriteSysLog("SGIP_BindResp","parseBuffer",ex,GlobalVar.SYSTEM_BASE_ERROR_0);
            return -1;
        }
        return 0;
    }
}

⌨️ 快捷键说明

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