LPS-44179 Change autoFlush concept for OutputStreamWriter/WriterOutputStream, now autoflush means after every write, if autoflush is on, all encoded/decoded data in output buffer will be automatically moved to underneath OutputStream/Writer, then reset the output buffer. This automatically moving does not flush underneath OutputStream/Writer. A flush is issued only when the flush() method is explicitly invoked.
LPS-44179 Update unit tests
LPS-44179 Turn on autoflush in proper places.
LPS-44179 Remove unneeded flush(not related to this issue, just a clean up)
LPS-44179 SF
LRDOCS-956 SF