Behavior of a hollow superconducting cylinder in a magnetic field