Top Fields Constructors Methods
org.apache.tomcat.util.http.parser

public Class ContentRange

extends Object
Class Inheritance
Imports
java.io.IOException, .StringReader

Field Summary

Modifier and TypeField and Description
private final long
private final long
private final long
private final String

Constructor Summary

AccessConstructor and Description
public
ContentRange(String units, long start, long end, long length)

Method Summary

Modifier and TypeMethod and Description
public long
public long
public long
public String
public static ContentRange

Returns:

the range parsed from the input, or null if not valid
parse
(StringReader
a reader over the header text
input
)

Parses a Content-Range header from an HTTP header.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endback to summary
private final long end
lengthback to summary
private final long length
startback to summary
private final long start
unitsback to summary
private final String units

Constructor Detail

ContentRangeback to summary
public ContentRange(String units, long start, long end, long length)

Method Detail

getEndback to summary
public long getEnd()
getLengthback to summary
public long getLength()
getStartback to summary
public long getStart()
getUnitsback to summary
public String getUnits()
parseback to summary
public static ContentRange parse(StringReader input) throws IOException

Parses a Content-Range header from an HTTP header.

Parameters
input:StringReader

a reader over the header text

Returns:ContentRange

the range parsed from the input, or null if not valid

Exceptions
IOException:
if there was a problem reading the input