http://stackoverflow.com/questions/19286271/why-do-i-get-eof-exception-while-reading-a-datainputstream-in-java