ERROR - java.io.EOFException - Possible Causes of EOFException

Exception Thrown By:Cause
ClassMethod
DataInputStream public final void
readFully(byte[] b)
if this input stream reaches
the end before reading all the bytes.
DataInputStream public final boolean
readBoolean()
if this input
stream has reached the end.
DataInputStream public final byte
readByte()
if this input
stream has reached the end.
DataInputStream public final int
readUnsignedByte()
if this input
stream has reached the end.
DataInputStream public final short
readShort()
if this input stream reaches
the end before reading two bytes.
DataInputStream public final int
readUnsignedShort()
if this input stream reaches
the end before reading two bytes.
DataInputStream public final char
readChar()
if this input stream reaches
the end before reading two bytes.
DataInputStream public final int
readInt()
if this input stream reaches
the end before reading four bytes.
DataInputStream public final long
readLong()
if this input stream reaches
the end before reading eight bytes.
DataInputStream public final float
readFloat()
if this input stream reaches
the end before reading four bytes.
DataInputStream public final double
readDouble()
if this input stream reaches
the end before reading eight bytes.
DataInputStream public final String
readUTF()
if this input stream reaches
the end before reading all the bytes.
DataInputStream public static final String
readUTF(DataInput in)
if the input stream reaches
the end before all the bytes.
RandomAccessFile public final void
readFully(byte[] b)
if this file reaches the
end before reading all the bytes.
RandomAccessFile public final boolean
readBoolean()
if this file
has reached the end.
RandomAccessFile public final byte
readByte()
if this file
has reached the end.
RandomAccessFile public final int
readUnsignedByte()
if this file
has reached the end.
RandomAccessFile public final short
readShort()
if this file reaches
the end before reading two bytes.
RandomAccessFile public final int
readUnsignedShort()
if this file reaches
the end before reading two bytes.
RandomAccessFile public final char
readChar()
if this file reaches
the end before reading two bytes.
RandomAccessFile public final int
readInt()
if this file reaches
the end before reading four bytes.
RandomAccessFile public final long
readLong()
if this file reaches
the end before reading eight bytes.
RandomAccessFile public final float
readFloat()
if this file reaches
the end before reading four bytes.
RandomAccessFile public final double
readDouble()
if this file reaches
the end before reading eight bytes.
RandomAccessFile public final String
readUTF()
if this file reaches the
end before reading all the bytes.