A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Java Products and Servers
Joined: Jul 11, 2004
Jul 27, 2004 04:12:00
first, thanks for all your answers!
my question is about InputRouter!
I want to reroute the standard input directory to a textArea.
.... /***for the output router TextAreaWriter taw = new TextAreaWriter(this.textArea1); rete.AddOutPutRouter("t",taw); rete.AddOutPutRouter("WSTDOUT",taw); rete.AddOutPutRouter("WSTDERR",taw); /*** for the input router TextReader reader =new TextReader(false); rete.AddInputRouter("t",reader,true); rete.AddInputRouter("WSTDIN",redaer,true);
but the result was that I could not input text since the stanard output directory too.
how to do to reroute it to my taxtArea1?
[ July 27, 2004: Message edited by: Lasse Koskela ]
author and iconoclast
Joined: Jul 08, 2003
Jul 27, 2004 08:24:00
TextReader works with a
for input, not a
-- run the jess.Console program for an example of what it looks like. You use a
for output, and a separate
In theory, you
write an adapter which took input from a
) -- but it's not something that TextReader can do.
[Jess in Action]
It is sorta covered in the
JavaRanch Style Guide
gettin error with TextReader
How can I....
Reading a large text file ,modifying it and writing it to another file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014