setStandardInput

open fun setStandardInput(inputStream: InputStream): JavaExec

Sets the standard input stream for the process executing the command. The stream is closed after the process completes.