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