public class ContentRange
extends java.lang.Object
Constructor and Description |
---|
ContentRange(java.lang.String units,
long start,
long end,
long length) |
Modifier and Type | Method and 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-2023 Apache Software Foundation. All Rights Reserved.