Method and apparatus for sample extraction and handling