|
Java学习者论坛
代碼如下,请各位高手帮忙看看
public int readbody()
{
int i;
i = 0;
byte abyte0[] = new byte[8];
bMsg_Id = new byte[8];
System.arraycopy(bodybytes, i, abyte0, 0, 8);
System.arraycopy(bodybytes, i, bMsg_Id, 0, 8);
Msg_Id = CMPP_Command.getMsgID(abyte0);
msg = "Msg_Id=" + Msg_Id;
i += 8;
abyte0 = new byte[21];
System.arraycopy(bodybytes, i, abyte0, 0, 21);
Dest_Id = (new String(abyte0)).trim();
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Dest_Id=";
append();
Dest_Id;
append();
toString();
msg;
i += 21;
byte abyte1[] = new byte[10];
System.arraycopy(bodybytes, i, abyte1, 0, 10);
Service_Id = (new String(abyte1)).trim();
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Service_Id=";
append();
Service_Id;
append();
toString();
msg;
i += 10;
TP_pid = bodybytes;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&TP_pid=";
append();
TP_pid;
append();
toString();
msg;
i++;
TP_udhi = bodybytes;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&TP_udhi=";
append();
TP_udhi;
append();
toString();
msg;
i++;
Msg_Fmt = bodybytes;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Msg_Fmt=";
append();
Msg_Fmt;
append();
toString();
msg;
i++;
byte abyte2[] = new byte[21];
System.arraycopy(bodybytes, i, abyte2, 0, 21);
Src_terminal_Id = (new String(abyte2)).trim();
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Src_terminal_Id=";
append();
Src_terminal_Id;
append();
toString();
msg;
i += 21;
Registered_Delivery = bodybytes;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Registered_Delivery=";
append();
Registered_Delivery;
append();
toString();
msg;
i++;
Msg_Length = bodybytes & 0xff;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Msg_Length=";
append();
Msg_Length;
append();
toString();
msg;
i++;
byte abyte3[] = new byte[Msg_Length];
System.arraycopy(bodybytes, i, abyte3, 0, Msg_Length);
if(Registered_Delivery == 1)
cmpp_msgContent = new CMPP_MsgContent(abyte3);
if(Msg_Fmt == 8)
try
{
Msg_Content = (new String(abyte3, "UTF-16BE")).trim();
}
catch(Exception exception)
{
Msg_Content = (new String(abyte3)).trim();
}
else
Msg_Content = (new String(abyte3)).trim();
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Msg_Content=";
append();
Msg_Content;
append();
toString();
msg;
i += Msg_Length;
byte abyte4[] = new byte[8];
System.arraycopy(bodybytes, i, abyte4, 0, 8);
Reserved = new String(abyte4);
if(Reserved == null)
Reserved = "";
else
Reserved = Reserved.trim();
new StringBuffer();
this;
JVM INSTR dup_x1 ;
msg;
append();
"&Reserved=";
append();
Reserved;
append();
toString();
msg;
return i += 8;
}
欢迎来到Java学習者论坛,转载请注明地址:http://www.javaxxz.com. |
|