?? index.java
字號:
package com.j2medev.chapter3;
import java.io.*;
/**
*
*/
public class Index {
public int id = 0;//存儲數據記錄的recordID
public String key = "";//存儲實際記錄的主鍵
public Index() {
}
public Index(int _id,String _key){
this.id = _id;
this.key = _key;
}
public void serialize(DataOutputStream dos) throws IOException{
dos.writeInt(id);
dos.writeUTF(key);
}
public static Index deserialize(DataInputStream dis) throws IOException{
Index index = new Index();
index.id = dis.readInt();
index.key = dis.readUTF();
return index;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -