How is the sweetness of wine measured?

How is the sweetness of wine measured?