I think there should be some facility to flush the output stream.

Hmm. Not sure now, as it looks lie FOS.flush() is a no-op.  Still, I think flushing makes sense form a durability and tidiness standpoint. :)