📄 deliver.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: Deliver.java
package spApi;
// Referenced classes of package spApi:
// SGIP_Command, MsgHead
public class Deliver extends SGIP_Command
{
String UserNumber;
String SpNumber;
int TP_pid;
int TP_udhi;
int MessageCoding;
int MessageLength;
byte MessageByte[];
String MessageContent;
int linkID1;
int linkID2;
public Deliver(MsgHead msghead)
{
super(msghead);
}
public Deliver(SGIP_Command sgip_command)
{
super(sgip_command);
}
public Deliver()
{
}
public int readbody()
{
byte abyte0[] = new byte[4];
UserNumber = new String(bodybytes, 0, 21);
SpNumber = new String(bodybytes, 21, 21);
TP_pid = bodybytes[42];
TP_udhi = bodybytes[43];
MessageCoding = bodybytes[44];
SGIP_Command.BytesCopy(bodybytes, abyte0, 45, 48, 0);
MessageLength = SGIP_Command.Bytes4ToInt(abyte0);
if(MessageLength > 160)
{
System.out.println("Message Length is too long! " + MessageLength);
MessageLength = 160;
}
MessageByte = new byte[MessageLength];
SGIP_Command.BytesCopy(bodybytes, MessageByte, 49, (49 + MessageLength) - 1, 0);
MessageContent = new String(MessageByte);
byte[] tmp = new byte[4];
SGIP_Command.BytesCopy(bodybytes,tmp,49 + MessageLength,49 + MessageLength+4-1,0);
linkID1 = SGIP_Command.Bytes4ToInt(tmp);
SGIP_Command.BytesCopy(bodybytes,tmp,49 + MessageLength+4,49 + MessageLength+4-1+4,0);
linkID2 = SGIP_Command.Bytes4ToInt(tmp);
return 0;
}
public String getUserNumber()
{
return UserNumber;
}
public String getSPNumber()
{
return SpNumber;
}
public int getTP_pid()
{
return TP_pid;
}
public int getTP_udhi()
{
return TP_udhi;
}
public int getMessageCoding()
{
return MessageCoding;
}
public int getMessageLength()
{
return MessageLength;
}
public byte[] getMessageByte()
{
return MessageByte;
}
public String getMessageContent()
{
return MessageContent;
}
public int getLinkID1() {
return linkID1;
}
public int getLinkID2() {
return linkID2;
}
public void setLinkID1(int linkID1) {
this.linkID1 = linkID1;
}
public void setLinkID2(int linkID2) {
this.linkID2 = linkID2;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -