类 HttpRange.ByteRange

java.lang.Object
cn.taketoday.http.HttpRange
cn.taketoday.http.HttpRange.ByteRange
封闭类:
HttpRange

private static class HttpRange.ByteRange extends HttpRange
Represents an HTTP/1.1 byte range, with a first and optional last position.
另请参阅:
  • 字段详细资料

    • firstPos

      private final long firstPos
    • lastPos

      @Nullable private final Long lastPos
  • 构造器详细资料

    • ByteRange

      public ByteRange(long firstPos, @Nullable Long lastPos)
  • 方法详细资料

    • assertPositions

      private void assertPositions(long firstBytePos, @Nullable Long lastBytePos)
    • getRangeStart

      public long getRangeStart(long length)
      从类复制的说明: HttpRange
      Return 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)
      从类复制的说明: HttpRange
      Return 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

      public boolean equals(@Nullable Object other)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object