📄 deliver.java
字号:
/* 北方交通大学16204宿舍专用Java反编译器 Java204 版本:0.2 *//* <<<使用前务必请仔细阅读随附警告信息>>> */// Copyright RainForest 2001. All rights reserved.
package spApi;
// 引入包及相应结构import java.io.PrintStream;
// 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;
// 类成员变量定义域结束 < 初始化过程祥见构造方法 >
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);
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;
} // Java 204 代码风格版本 : 6.0 < 类Fox Lin C++ 风格 >}// class Deliver extends SGIP_Command 结束// 主类结束
/*********提高国人Java水平,从你做起,从我做起,我看不如从Java204做起....*********//*联系我们 : 地址 : 北京市北方交通大学电气99-2班 29号信箱 邮编 : 100044 电话 : 010-63223904 或 13641045686 RFB : 冯霖 补充 : 我在16204宿舍住 :) *//*谢谢选择RainForest的产品,请多支持我们,我们会把更多更强的BOSS级工具奉献给用户*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -