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

Re: Non-blocking readline()



This is available in NIO in JDK 1.4.

See the November 19 issue of JDC Tech Tips.

http://developer.java.sun.com/developer/JDCTechTips/2002/tt1119.html#2

Ed


Left Behind II:  Tribulation Force is coming soon to a theatre near you.
Stay tuned for more details.

----Original Message Follows----
From: cfowler
To: ajug-members@ajug.org
Subject: Non-blocking readline()
Date: 10 Dec 2002 13:53:43 -0500
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


Help STOP SPAM with the new MSN 8 and get 2 months FREE*