8336895: BufferedReader doesn't read full \r\n line ending when it doesn't fit in buffer

Reviewed-by: jpai, alanb
This commit is contained in:
Brian Burkhalter 2024-09-26 15:20:51 +00:00
parent 376056ca48
commit aeaa4f78eb
4 changed files with 46 additions and 23 deletions

View file

@ -50,6 +50,11 @@ import jdk.internal.util.ArraysSupport;
* reread before new bytes are taken from
* the contained input stream.
*
* @apiNote
* Once wrapped in a {@code BufferedInputStream}, the underlying
* {@code InputStream} should not be used directly nor wrapped with
* another stream.
*
* @author Arthur van Hoff
* @since 1.0
*/