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

public Class Ranges

extends Object
Class Inheritance
Imports
java.io.IOException, .StringReader, java.util.ArrayList, .Collections, .List, .Locale

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final List<Ranges.Entry>
private final String

Constructor Summary

AccessConstructor and Description
public
Ranges(String units, List<Ranges.Entry> entries)

Method Summary

Modifier and TypeMethod and Description
public List<Ranges.Entry>
public String
public static Ranges

Returns:

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

Parses a Range header from an HTTP header.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entriesback to summary
private final List<Ranges.Entry> entries
unitsback to summary
private final String units

Constructor Detail

Rangesback to summary
public Ranges(String units, List<Ranges.Entry> entries)

Method Detail

getEntriesback to summary
public List<Ranges.Entry> getEntries()
getUnitsback to summary
public String getUnits()
parseback to summary
public static Ranges parse(StringReader input) throws IOException

Parses a Range header from an HTTP header.

Parameters
input:StringReader

a reader over the header text

Returns:Ranges

a set of ranges parsed from the input, or null if not valid

Exceptions
IOException:
if there was a problem reading the input
org.apache.tomcat.util.http.parser back to summary

public Class Ranges.Entry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final long
private final long

Constructor Summary

AccessConstructor and Description
public
Entry(long start, long end)

Method Summary

Modifier and TypeMethod and Description
public long
public long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endback to summary
private final long end
startback to summary
private final long start

Constructor Detail

Entryback to summary
public Entry(long start, long end)

Method Detail

getEndback to summary
public long getEnd()
getStartback to summary
public long getStart()