?? msgbind.java
字號(hào):
package SPAPI;/** * Title: SPAPI * Description: * Copyright: Copyright (c) 2002 * Company: openet * @author taixf * @version 1.0 */public class MsgBind extends MsgHead{ private int Type; // 1 Integer private String Name; // 16 Text private String Password; // 16 Text private String Reserve; // 8 Text public MsgBind(){ super(); setTotalLen(61); setCmdID(0x1); Type = 0x1; Name = new String(); Password = new String(); Reserve = new String(); } public MsgBind(byte[] ba){ super(); setHead(ba); Type = 0x1; Name = byte2str(ba, 21, 16); Password = byte2str(ba, 37, 16); Reserve = byte2str(ba, 53, 8); } public void print() { System.out.print("/"); printHead(); System.out.print("\n"); System.out.print("\\Type=" + Type); System.out.print(" Name=\"" + Name + "\""); System.out.print(" Password=\"" + Password + "\""); System.out.print(" Reserve=\"" + Reserve + "\""); System.out.print("\n"); } public byte[] getBytes() { byte[] r = new byte[61]; headFill(r); r[20] = (byte)(Type); str2byte(r, Name, 21, 16); str2byte(r, Password, 37, 16); str2byte(r, Reserve, 53, 8); return r; } public String getName() { return Name; } public void setName(String Name) { this.Name = Name; } public String getPassword() { return Password; } public void setPassword(String Password) { this.Password = Password; } public String getReserve() { return Reserve; } public void setReserve(String Reserve) { this.Reserve = Reserve; } public int getType() { return Type; } public void setType(int Type) { this.Type = Type; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -