code: protected int readShort(InputStream is) throws IOException
     {
        byte[] data = new byte[2];
        if (is.read(data) != data.length)
        {
           throw new EOFException();
        }
  
        return (MPPUtility.getShort(data, 0));
     }
docs: This method reads a two byte integer from the input stream.
  
  @param is the input stream
  @return integer value
  @throws IOException on file read error or EOF