JDK 9 RFR of 8179662: OutputStreamWriter javadocs states that you can set the buffer size but there is no way to do that
chris.hegarty at oracle.com
Tue May 9 08:08:31 UTC 2017
> On 9 May 2017, at 03:28, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> Please review this doc-only change  for  at your convenience with reference to .
>  https://bugs.openjdk.java.net/browse/JDK-8179662
>  diff
> --- a/src/java.base/share/classes/java/io/OutputStreamWriter.java
> +++ b/src/java.base/share/classes/java/io/OutputStreamWriter.java
> @@ -40,10 +40,8 @@
> * <p> 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.
> * <p> For top efficiency, consider wrapping an OutputStreamWriter within a
> * BufferedWriter so as to avoid frequent converter invocations. For example:
Looks ok to me Brian.
More information about the core-libs-dev