📄 sgip_submitresp.java
字号:
/**
* <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_SubmitResp {
private SGIP_Head head=new SGIP_Head();
private int Result;
private byte[] Reserve;
public SGIP_SubmitResp() {
super();
}
public int getCommadID(){
return head.RequestID;
}
public int getResult(){
return Result;
}
public byte[] getReserve(){
return Reserve;
}
public int parseBuffer(byte[] buffer){
DataInputStream data=new DataInputStream(new ByteArrayInputStream(buffer));
try{
head.PacketLength=data.readInt();
head.RequestID=data.readInt();
head.Seq1=data.readLong();
head.Seq2=data.readInt();
head.Seq3=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_SubmitResp","parseBuffer",ex,GlobalVar.SYSTEM_BASE_ERROR_0);
return -1;
}
return 0;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -