Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Process.consumeProcessOutput() rewrite in core Java

 
Benson Fung
Ranch Hand
Posts: 214
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic