A heteropolymer near a linear interface