Package io.milton.http
Class Range
- java.lang.Object
-
- io.milton.http.Range
-
public class Range extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetFinish()LonggetLength()Calculate the length of this range if both start and finish indexes are non-null, otherwise return nullStringgetRange()Returns range in String format ("start-end"), ready to be put into HTTP range requestLonggetStart()static Rangeparse(String s)StringtoString()
-
-
-
Method Detail
-
getStart
public Long getStart()
-
getFinish
public Long getFinish()
-
getLength
public Long getLength()
Calculate the length of this range if both start and finish indexes are non-null, otherwise return null- Returns:
-
getRange
public String getRange()
Returns range in String format ("start-end"), ready to be put into HTTP range request- Returns:
- Range of data in stream
-
-