java.lang.Object
net.i2p.util.EepGet.ContentRange
Enclosing class:
EepGet

static final class EepGet.ContentRangeextends Object
Parsed Content-Range header value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final long
    Last byte of the range (inclusive), or -1 for the unsatisfied form sent with 416.
    (package private) final long
    First byte of the range, or -1 for the unsatisfied form sent with 416.
    (package private) final long
    Total length of the representation, or -1 when the server sent a star.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContentRange(long start, long end, long total)
    Build a range from the three numbers parsed out of a Content-Range header.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      final long start
      First byte of the range, or -1 for the unsatisfied form sent with 416.
    • end

      final long end
      Last byte of the range (inclusive), or -1 for the unsatisfied form sent with 416.
    • total

      final long total
      Total length of the representation, or -1 when the server sent a star.
  • Constructor Details

    • ContentRange

      ContentRange(long start, long end, long total)
      Build a range from the three numbers parsed out of a Content-Range header.
      Parameters:
      start - first byte, or -1 if unknown
      end - last byte, or -1 if unknown
      total - total length, or -1 if unknown