The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Runtime Class Information

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

getting input stream from runtime.

Posted by vinod on October 24, 2001 at 5:55 AM

Hi,
I am executing a perl file at runtime which gives text as output.
it can have any number of lines. How can I display whatever the output to a text area?

I am following this method right now which is tedious and timeconsuming.

String f = new String();
int pkm = 1;

InputStream t = p.getInputStream();
while (true)
{
c = t.read();
f = f+(char)c;
screen1.textArea1.setText(f);
if(pkm >= 20000)
{
break;

}
pkm = pkm+1;

Please help he regarding this.

Thanks
Vinod



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us