title: Java timeout period to read serial port
body: <p>I have a code to read serial port through rxtx. But I want that bufferedreader of input-stream should check for specified time that data is coming or not. After timeout it should stop the program or thread which I have started to to read serialReader.</p>