I have a thread that reads characters from a Buffered reader (created from a socket as follows):
inputStream = new BufferedReader(new InputStreamReader(clien
java.io.InputStream.read() is a blocking call, which means if no data is available the thread halts until data becomes available.
java.io.InputStream.read()
For non-blocking I/O, use classes from the java.nio package.
java.nio