> Cool, thanks how do you specify a timeout though ?
> 

Oh pants... Hang on!

Erm... Not easy in the Java, though what I would say is to start a counter
at the start of the code, and check at all times whether you've reached the
timeout...

Either that or wrap it in a <cflock> and specify a timeout...?

----code----
<cfscript>
        objURL = createobject("Java", "java.net.URL");
        myURL = objURL.init("http://www.google.com";);
        objisr = createobject("Java", "java.io.InputStreamReader");
        objBr = createObject("Java", "java.io.BufferedReader");
        isr = objisr.init(myURL.getContent());
        br = objbr.init(isr);
</cfscript>

<cfset line = br.readline()>
<cfloop condition="#IsDefined("line")#">
        <cfoutput>#htmleditformat(line)#</cfoutput>
        <cfset line = br.readline()>
</cfloop>
----code----

Paul



-- 
** 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