Theory of Single-Dimensional Absorption. II. Adsorption of Small Molecules on a Heteropolymer