Skip to content

Commit

Permalink
8292427: Improve specification of InflaterInputStream.fill()
Browse files Browse the repository at this point in the history
Reviewed-by: bpb, alanb, simonis
  • Loading branch information
Lance Andersen committed Nov 3, 2022
1 parent 53905e6 commit 72f74df
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -251,7 +251,13 @@ public void close() throws IOException {

/**
* 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();
Expand Down

1 comment on commit 72f74df

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.