A method is proposed for calculating the energy dependence of the fusion cross section (in general, the sum of the cross sections for complete and incomplete fusion, quasifission, and reactions of deep-inelastic scattering) σF(E) and the total cross section for peripheral (or quasielastic) reactions, σD(E). The method is based on an analysis of a limited set of angular distributions for the elastic scattering in a given pair of nuclei. The predictive power of the method is illustrated by considering the 16O + 208Pb, 16O + 40Ca, and 16O + 28Si systems. For each of these systems, the calculations were performed at energies in the range extending from subbarrier values to those exceeding the barrier height substantially. The results of the calculations are found to be in good agreement with relevant experimental data, whereby the reliability of the method is confirmed. By virtue of this, it is proposed to employ the method to study the energy dependences σF(E) and σD(E) in collisions involving unstable nuclei, for which it is difficult to determine experimentally the above dependences because of a low intensity of secondary beams.