code: public static AbstractPacket unserializeFrom( RawDataBuffer in )
      {
          byte type = in.readByte(); 
          AbstractPacket packet = PacketType.createInstance(type);
          packet.unserializeFrom(in);
          
          return packet;
      }
docs: Unserialize a packet from the given input stream