Text this: Generalized boost transformations in finite volumes and application to Hamiltonian methods