A medical grade needle is inserted through the foil and the cork and you are able to pour out a glass of wine while the inert gas, argon, is added to displace the wine.  Oxygen never hits the wine as the needle is pulled out, the cork reseals itself.