mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -56,7 +56,7 @@ public class ByteArrayInputStream extends InputStream {
|
|||
protected byte[] buf;
|
||||
|
||||
/**
|
||||
* The index of the next character to read from the input stream buffer.
|
||||
* The index of the next byte to read from the input stream buffer.
|
||||
* This value should always be nonnegative
|
||||
* and not larger than the value of {@code count}.
|
||||
* The next byte to be read from the input stream buffer
|
||||
|
@ -80,7 +80,7 @@ public class ByteArrayInputStream extends InputStream {
|
|||
protected int mark = 0;
|
||||
|
||||
/**
|
||||
* The index one greater than the last valid character in the input
|
||||
* The index one greater than the last valid byte in the input
|
||||
* stream buffer.
|
||||
* This value should always be nonnegative
|
||||
* and not larger than the length of {@code buf}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue