java.lang.Object
net.i2p.util.EepGet.ContentRange
- Enclosing class:
EepGet
Parsed Content-Range header value.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final longLast byte of the range (inclusive), or -1 for the unsatisfied form sent with 416.(package private) final longFirst byte of the range, or -1 for the unsatisfied form sent with 416.(package private) final longTotal length of the representation, or -1 when the server sent a star.Constructor Summary
ConstructorsConstructorDescriptionContentRange(long start, long end, long total) Build a range from the three numbers parsed out of a Content-Range header.Method Summary
Field Details
start
final long startFirst byte of the range, or -1 for the unsatisfied form sent with 416.end
final long endLast byte of the range (inclusive), or -1 for the unsatisfied form sent with 416.total
final long totalTotal 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 unknownend- last byte, or -1 if unknowntotal- total length, or -1 if unknown