I am working with a DataInputStream and had a question about EOFExceptions.
According to java docs:
Signals that an end of file or end of st
When you reach the end of a stream (end of file, or peer closes the connection):
read()
readLine()
readXXX()
EOFException
The stream is still open, but you should stop reading from it and close it.