Add API for streaming samples from an io.Reader