?? transporter.java
字號:
package name.lxm.robot.arch.module;
import java.io.*;
public class Transporter implements Serializable
{
byte[] b = null;
public Transporter()
{
}
public Transporter(byte[] o)
{
b = o;
}
private void writeObject(ObjectOutputStream out) throws IOException
{
out.writeInt(b.length);
out.write(b);
}
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException
{
int size = in.readInt();
b = new byte[size];
in.readFully(b);
}
public byte[] getBytes()
{
return b;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -