Chould you write your own subclasses of the PrintStream class to redirect
the input?

e.g.

stdout = new PrintStream (new OutputStream...........
System.out = stdout;



Justin

> -----Original Message-----
> From: Kola Oyedeji [mailto:kola.oyedeji@;iclployalty.com]
> Sent: 01 November 2002 16:14
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Capturing Java output
>
>
> Hi
>
> You should be able to use cfexecute to execute your java program from
> the command line
> and then wrap the call in cfsavecontent so you have the output saved in
> the variable.
>
>
> HTH
>
> Kola
>
>
> >> -----Original Message-----
> >> From: Tim Blair [mailto:tim@;rawnet.com]
> >> Sent: 01 November 2002 16:11
> >> To: [EMAIL PROTECTED]
> >> Subject: RE: [ cf-dev ] Capturing Java output
> >>
> >>
> >> > rather than writing to System.out write to a Tring /
> >> > StringBuffer or Stream instead
> >>
> >> Unfortunately I can't change the java code, which is why I was
> wondering
> >> if there was any way of just "capturing" the output.  :o\
> >>
> >> Tim.
> >>
> >>
> >> -------------------------------------------------------
> >> Tim Blair
> >> Web Application Engineer, Rawnet Limited
> >> Direct Phone : +44 (0) 1344 393 441
> >> Switchboard : +44 (0) 1344 393 040
> >> -------------------------------------------------------
> >> rawnet ltd
> >> Atrium Court
> >> Bracknell                    [EMAIL PROTECTED]
> >> Berkshire                    Tel : +44 (0) 1344 393 040
> >> RG12 1BW, UK                 http://www.rawnet.com
> >> -------------------------------------------------------
> >> This message may contain information which is legally
> >> privileged and/or confidential.  If you are not the
> >> intended recipient, you are hereby notified that any
> >> unauthorised disclosure, copying, distribution or use
> >> of this information is strictly prohibited. Such
> >> notification notwithstanding, any comments, opinions,
> >> information or conclusions expressed in this message
> >> are those of the originator, not of rawnet limited,
> >> unless otherwise explicitly and independently indicated
> >> by an authorised representative of rawnet limited.
> >> -------------------------------------------------------
> >>
> >>
> >>
> >>
> >> --
> >> ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >>
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
>


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to