*/
public final char readChar() throws IOException
{
- int count = in.read (buf, 0, 2);
- if (count < 2)
- throw new EOFException();
+ readFully (buf, 0, 2);
return convertToChar(buf);
}
*/
public final int readInt() throws IOException
{
- int count = in.read (buf, 0, 4);
- if (count < 4)
- throw new EOFException();
+ readFully (buf, 0, 4);
return convertToInt(buf);
}
*/
public final long readLong() throws IOException
{
- int count = in.read(buf, 0, 8);
- if (count < 8)
- throw new EOFException();
+ readFully (buf, 0, 8);
return convertToLong(buf);
}
*/
public final short readShort() throws IOException
{
- int count = in.read(buf, 0, 2);
- if (count < 2)
- throw new EOFException();
+ readFully (buf, 0, 2);
return convertToShort(buf);
}
*/
public final int readUnsignedShort() throws IOException
{
- int count = in.read(buf, 0, 2);
- if (count < 2)
- throw new EOFException();
+ readFully (buf, 0, 2);
return convertToUnsignedShort(buf);
}