📄 activetest.java
字号:
package cmpp.v2_0;
import java.util.Arrays;
public class ActiveTest extends CMPP
{
private final int commandId = CMPP.ID_CMPP_ACTIVE_TEST;
private final int commandLength = 0;
public ActiveTest() {
super(CMPP.ID_CMPP_ACTIVE_TEST);
}
public ActiveTest(CMPP cmpp) {
super(cmpp);
}
/**
*
*/
protected int parseBody() {
if( super.bodyLength < commandLength ) { //length too short.
return -1;
}
return 0;
}
/**
*
*/
protected int makeBody() {
// make bodybytes
super.bodyLength = commandLength;
super.bodybytes = new byte[super.bodyLength];
Arrays.fill(super.bodybytes,(byte)0);
// make body
return 0;
}
public String toString() {
StringBuffer sb = new StringBuffer();
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -