mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6595142: (spec) ByteArrayInputStream treats bytes, not characters
Reviewed-by: alanb
This commit is contained in:
parent
880f52fda0
commit
57798dd439
3 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -134,7 +134,7 @@ public class SequenceInputStream extends InputStream {
|
|||
* {@inheritDoc}
|
||||
* <p>
|
||||
* This method
|
||||
* tries to read one character from the current substream. If it
|
||||
* tries to read one byte from the current substream. If it
|
||||
* reaches the end of the stream, it calls the {@code close}
|
||||
* method of the current substream and begins reading from the next
|
||||
* substream.
|
||||
|
@ -163,7 +163,7 @@ public class SequenceInputStream extends InputStream {
|
|||
* <p>
|
||||
* The {@code read} method of {@code SequenceInputStream}
|
||||
* tries to read the data from the current substream. If it fails to
|
||||
* read any characters because the substream has reached the end of
|
||||
* read any bytes because the substream has reached the end of
|
||||
* the stream, it calls the {@code close} method of the current
|
||||
* substream and begins reading from the next substream.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue