org.restlet.engine.header
Class RangeReader

java.lang.Object
  extended by org.restlet.engine.header.RangeReader

public class RangeReader
extends Object

Range header reader.

Author:
Jerome Louvel

Method Summary
static List<Range> read(String rangeHeader)
          Parse the Range header and returns the list of corresponding Range objects.
static void update(String value, Representation representation)
          Parse the Content-Range header value and update the given representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

update

public static void update(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 List<Range> read(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.


Copyright © 2005-2013 Restlet.