I have an internal branch of JavaWriter that uses strings with newlines. It works pretty well.