[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-blocking readline()



Is there a available() method.

Calvin

cfowler wrote:
> 
> I'm using a readLine() in a BufferedInputStream and I need to *not*
> block forever in that readLine().  Is there an easy solution that will
> allow me to timeout a read after 10 seconds?
> 
> Thanks,
> Chris
> 
>