Hi Wayne,
This syntax should work:
myBufferedReader = CreateObject("java", "java.io.BufferedReader").init(
CreateObject("java", "java.io.FileReader").init(file)
);
[EMAIL PROTECTED] wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is there a way to create anonymous objects in Java through CF?
>
> In Java, you can write an object to read files like this...
>
> BufferedReader in = new BufferedReader(new FileReader(file));
>
> To create a BufferedReader object from a FileReader object in a
> single line. In CF, it takes two lines to create the same objects.
> Not that this is a big deal, but I was wondering if there's a
> shortcut.
--
Lindsay Evans.
Developer,
Red Square Productions.
[p] 8596.4000
[f] 8596.4001
[w] www.redsquare.com.au
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]