Class ByteRangeUtils
java.lang.Object
io.meeds.social.attachment.rest.util.ByteRangeUtils
-
Method Summary
-
Method Details
-
parse
Reads the single range of a Range header.- Parameters:
header- value of the Range headerlength- size of the file- Returns:
- the range asked,
ByteRange.UNSATISFIABLEwhen it is outside the file, or null when the whole file is to be answered: no header, another unit than bytes, several ranges or a form that is no range
-
matches
-