Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed May 31, 2024
1 parent 72c36a9 commit 583ff31
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ private long computeLengthOfRanges() {
}

/**
* Called before reading a range from the file to ensure that this range is present. Returns a list of gaps for the caller to fill. The
* range from the file is defined by {@code range} but the listener is executed as soon as a (potentially smaller) sub range
* {@code subRange} becomes available.
* Called before reading a range from the file to ensure that this range is present. Returns a list of gaps for the caller to fill,
* unless the {@code subRange} is already present in which case the listener is executed immediately without returning gaps. The range
* from the file is defined by {@code range} but the listener is executed as soon as a (potentially smaller) sub range {@code subRange}
* becomes available.
*
* @param range A ByteRange that contains the (inclusive) start and (exclusive) end of the desired range
* @param subRange A ByteRange that contains the (inclusive) start and (exclusive) end of the listener's range
Expand Down

0 comments on commit 583ff31

Please sign in to comment.