The owner of a San Jose apartment complex that has teetered on the brink of foreclosure has filed for bankruptcy.