Exemple #1
0
 /**
  * Reads and returns a short.
  *
  * @return the 2 bytes merged into a short, according to the current byte ordering
  * @exception EOFException there were less than 2 bytes left in the file
  * @exception FormatException rethrow of IOExceptions encountered while reading the bytes for the
  *     short
  * @see #read(byte[])
  */
 public short readShort() throws EOFException, FormatException {
   // MSBFirst must be set when we are called
   return MoreMath.BuildShort(readBytes(2, false), MSBFirst);
 }