How is “nippon” (japonais) used and is it offensive?

I’m reading a book (Stupeur et tremblements) and the protagonist lives in Japan. She uses “nippon” in place of “japonais” most of the time (as an adjective and also for the language). I never heard this before, is this used spoken as well? Can it be offensive?