Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Process.consumeProcessOutput() rewrite in core Java

 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to transform a groovy program in a core java program. However, there is a line in the groovy program as below:


process.consumeProcessOutput() //where process object was created in the above of the groovy script command execution.

Now I need to transform consumeProcessOutput() into core java of Process class. Can anyone suggest couple lines of code to replace consuleProcessOutput()?


thanks for help
Benson
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic