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

Brian Burkhalter brian.burkhalter at oracle.com
Tue May 9 02:28:46 UTC 2017


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


More information about the core-libs-dev mailing list