public class ContentRange extends Object
| Constructor and Description |
|---|
ContentRange(String units,
long start,
long end,
long length) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEnd() |
long |
getLength() |
long |
getStart() |
String |
getUnits() |
static ContentRange |
parse(StringReader input)
Parses a Content-Range header from an HTTP header.
|
public ContentRange(String units, long start, long end, long length)
public String getUnits()
public long getStart()
public long getEnd()
public long getLength()
public static ContentRange parse(StringReader input) throws IOException
input - a reader over the header textIOException - if there was a problem reading the inputCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.