JDK 9 RFR of 8179662: OutputStreamWriter javadocs states that you can set the buffer size but there is no way to do that

Lance Andersen lance.andersen at oracle.com
Tue May 9 10:57:56 UTC 2017


+1
> On May 8, 2017, at 10:28 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> 
> Please review this doc-only change [2] for [1] at your convenience with reference to [3].
> 
> Thanks,
> 
> Brian
> 
> [1] https://bugs.openjdk.java.net/browse/JDK-8179662
> [2] 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:
> 
> [3] http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-May/047526.html

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>





More information about the core-libs-dev mailing list