# HG changeset patch # User bpb # Date 1494340820 25200 # Node ID e89631bcf030165f0437379fb2d87269a97d5146 # Parent 8a8e17cde86f85fdd8f350af9e955096a40110ea 8179662: OutputStreamWriter javadocs states that you can set the buffer size but there is no way to do that Summary: Change specification verbiage to match longstanding behavior Reviewed-by: briangoetz, chegar, lancea, rriggs diff -r 8a8e17cde86f -r e89631bcf030 jdk/src/java.base/share/classes/java/io/OutputStreamWriter.java --- a/jdk/src/java.base/share/classes/java/io/OutputStreamWriter.java Tue May 09 13:19:27 2017 +0200 +++ b/jdk/src/java.base/share/classes/java/io/OutputStreamWriter.java Tue May 09 07:40:20 2017 -0700 @@ -40,10 +40,8 @@ * *

Each invocation of a write() method causes the encoding converter to be * invoked on the given character(s). The resulting bytes are accumulated in a - * buffer before being written to the underlying output stream. The size of - * this buffer may be specified, but by default it is large enough for most - * purposes. Note that the characters passed to the write() methods are not - * buffered. + * buffer before being written to the underlying output stream. Note that the + * characters passed to the write() methods are not buffered. * *

For top efficiency, consider wrapping an OutputStreamWriter within a * BufferedWriter so as to avoid frequent converter invocations. For example: