stdin is for reading not writing.
However, you might want to look at setStandardInputFile() and setStandardOutputFile().These need to be called before you start() the process.