The Star Garment group has bought a German-owned factory that had been lined up for liquidation.