Cagliostro
Programmer
Hi, I have an input stream like:
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
Further operation is
str = in.readLine();
it stops the thread until can read something from the stream. How can I know if in the stream is something to read without stopping application or thread? Ion Filipski
filipski@excite.com
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
Further operation is
str = in.readLine();
it stops the thread until can read something from the stream. How can I know if in the stream is something to read without stopping application or thread? Ion Filipski
filipski@excite.com