mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8292427: Improve specification of InflaterInputStream.fill()
Reviewed-by: bpb, alanb, simonis
This commit is contained in:
parent
53905e600a
commit
72f74df49a
1 changed files with 7 additions and 1 deletions
|
@ -52,7 +52,7 @@ public class InflaterInputStream extends FilterInputStream {
|
|||
protected byte[] buf;
|
||||
|
||||
/**
|
||||
* Length of input buffer.
|
||||
* The total number of bytes read into the input buffer.
|
||||
*/
|
||||
protected int len;
|
||||
|
||||
|
@ -251,7 +251,13 @@ public class InflaterInputStream extends FilterInputStream {
|
|||
|
||||
/**
|
||||
* Fills input buffer with more data to decompress.
|
||||
* @implSpec
|
||||
* This method will read up to {@link #buf}.length bytes into the input
|
||||
* buffer, {@link #buf}, starting at element {@code 0}. The {@link #len}
|
||||
* field will be set to the number of bytes read.
|
||||
* @throws IOException if an I/O error has occurred
|
||||
* @throws EOFException if the end of input stream has been reached
|
||||
* unexpectedly
|
||||
*/
|
||||
protected void fill() throws IOException {
|
||||
ensureOpen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue