What is buprenex (buprenorphine) used for?

What is buprenex (buprenorphine) use. For opoid dependant patients for replacement therapy ot for detoxification purposes.