An Australian adventurer says he has been detained in a "rat-infested" immigration centre for 10 days after being shipwrecked off the Indonesian coast.