Exemplo n.º 1
0
 /** 把BinaryPacket转变成FieldPacket */
 public void read(BinaryPacket bin) {
   this.packetLength = bin.packetLength;
   this.packetId = bin.packetId;
   readBody(new MySQLMessage(bin.data));
 }
Exemplo n.º 2
0
 /** 把字节数组转变成FieldPacket */
 public void read(byte[] data) {
   MySQLMessage mm = new MySQLMessage(data);
   this.packetLength = mm.readUB3();
   this.packetId = mm.read();
   readBody(mm);
 }