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
|
@ -96,7 +96,7 @@ public class BufferedInputStream extends FilterInputStream {
|
|||
|
||||
/**
|
||||
* The current position in the buffer. This is the index of the next
|
||||
* character to be read from the {@code buf} array.
|
||||
* byte to be read from the {@code buf} array.
|
||||
* <p>
|
||||
* This value is always in the range {@code 0}
|
||||
* through {@code count}. If it is less
|
||||
|
@ -297,7 +297,7 @@ public class BufferedInputStream extends FilterInputStream {
|
|||
}
|
||||
|
||||
/**
|
||||
* Read characters into a portion of an array, reading from the underlying
|
||||
* Read bytes into a portion of an array, reading from the underlying
|
||||
* stream at most once if necessary.
|
||||
*/
|
||||
private int read1(byte[] b, int off, int len) throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue