public class ContentRange extends Object
Handles the content range request header used in chunked uploads.
Modifier and Type | Method and Description |
---|---|
static ContentRange |
fromHeader(String rangeHeader)
Parses the given content range header.
|
int |
getEnd()
Returns the content range end offset.
|
int |
getStart()
Returns the content range start offset.
|
int |
getTotalSize()
Returns the total content size.
|
public static ContentRange fromHeader(String rangeHeader)
Parses the given content range header.
rangeHeader
- the content range headerIllegalArgumentException
- if the header could not be parsedpublic int getStart()
Returns the content range start offset.
public int getEnd()
Returns the content range end offset.
public int getTotalSize()
Returns the total content size.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.