类 HttpRange.ByteRange
java.lang.Object
cn.taketoday.http.HttpRange
cn.taketoday.http.HttpRange.ByteRange
- 封闭类:
- HttpRange
Represents an HTTP/1.1 byte range, with a first and optional last position.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidassertPositions(long firstBytePos, Long lastBytePos) booleanlonggetRangeEnd(long length) Return the end of the range (inclusive) given the total length of a representation.longgetRangeStart(long length) Return the start of the range given the total length of a representation.inthashCode()toString()从类继承的方法 cn.taketoday.http.HttpRange
createByteRange, createByteRange, createSuffixRange, parseRanges, toResourceRegion, toResourceRegions, toString
-
字段详细资料
-
firstPos
private final long firstPos -
lastPos
-
-
构造器详细资料
-
ByteRange
-
-
方法详细资料
-
assertPositions
-
getRangeStart
public long getRangeStart(long length) 从类复制的说明:HttpRangeReturn the start of the range given the total length of a representation.- 指定者:
getRangeStart在类中HttpRange- 参数:
length- the length of the representation- 返回:
- the start of this range for the representation
-
getRangeEnd
public long getRangeEnd(long length) 从类复制的说明:HttpRangeReturn the end of the range (inclusive) given the total length of a representation.- 指定者:
getRangeEnd在类中HttpRange- 参数:
length- the length of the representation- 返回:
- the end of the range for the representation
-
equals
-
hashCode
public int hashCode() -
toString
-