Moved most functionality up to AbstractDelimitedTextFileOutput; added sync on OutputStream.