Package org.restlet.engine.header
Class RangeReader
- java.lang.Object
-
- org.restlet.engine.header.RangeReader
-
public class RangeReader extends java.lang.ObjectRange header reader.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRangeReader()Private constructor to ensure that the class acts as a true utility class i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Range>read(java.lang.String rangeHeader)Parse the Range header and returns the list of corresponding Range objects.static voidupdate(java.lang.String value, Representation representation)Parse the Content-Range header value and update the given representation.
-
-
-
Method Detail
-
update
public static void update(java.lang.String value, Representation representation)Parse the Content-Range header value and update the given representation.- Parameters:
value- Content-range header.representation- Representation to update.
-
read
public static java.util.List<Range> read(java.lang.String rangeHeader)
Parse the Range header and returns the list of corresponding Range objects.- Parameters:
rangeHeader- The Range header value.- Returns:
- The list of corresponding Range objects.
-
-