📄 phsactivetestrep.java
字号:
package sms.PHS;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class PHSActiveTestRep
extends PHSResponse {
private static final int COMMAND_ID = 0x80000004;
static final int lenMessageBody = 0;
public PHSActiveTestRep(PHSMessage msg) throws PHSException {
setPacketOffset(msg.getPacketOffset());
setPacketBytes(msg.getPacketBytes());
setCommandId(msg.getCommandId());
setSequenceId(msg.getSequenceId());
setTotalLength(msg.getTotalLength());
if (getOffset() != getLength()) {
throw new PHSException("no end !");
}
else {
return;
}
}
public PHSActiveTestRep(PHSIO cmppio) throws PHSException {
super(cmppio);
if (getOffset() != getLength()) {
throw new PHSException("no end !");
}
else {
return;
}
}
public PHSActiveTestRep() throws PHSException {
super(0x80000004);
}
public PHSActiveTestRep(int SequenceId) throws PHSException {
super(0x80000004, SequenceId);
}
public void encodePacket(PHSIO cmppio) throws PHSException {
if (getLength() != 0) {
throw new PHSException("encodePacket : invalid packet length !");
}
else {
super.encodePacket(cmppio);
return;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -