Class ByteRange
java.lang.Object
org.apache.pekko.http.javadsl.model.headers.ByteRange
org.apache.pekko.http.scaladsl.model.headers.ByteRange
- All Implemented Interfaces:
- Renderable,- ToStringRenderable,- ValueRenderable
- Direct Known Subclasses:
- ByteRange.FromOffset,- ByteRange.Slice,- ByteRange.Suffix
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic classstatic final classUsed to specify the lastlengthbytes of an entity.static class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ByteRange.Sliceapply(long first, long last) static ByteRange.FromOffsetfromOffset(long offset) Java APIJava APIJava APIJava APIbooleanJava APIbooleanisSlice()Java APIbooleanisSuffix()Java APIstatic ByteRange.Suffixsuffix(long length) Constructs a range that spans the last `length` bytes of an entity.Methods inherited from class org.apache.pekko.http.javadsl.model.headers.ByteRangecreateFromOffset, createSlice, createSuffixMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.util.RenderablerenderMethods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderabletoStringMethods inherited from interface org.apache.pekko.http.impl.util.ValueRenderablevalue
- 
Constructor Details- 
ByteRangepublic ByteRange()
 
- 
- 
Method Details- 
apply
- 
fromOffset
- 
suffixConstructs a range that spans the last `length` bytes of an entity.
- 
getSliceFirstJava API- Specified by:
- getSliceFirstin class- ByteRange
 
- 
getSliceLastJava API- Specified by:
- getSliceLastin class- ByteRange
 
- 
getOffsetJava API
- 
getSuffixLengthJava API- Specified by:
- getSuffixLengthin class- ByteRange
 
- 
isSlicepublic boolean isSlice()Java API
- 
isFromOffsetpublic boolean isFromOffset()Java API- Specified by:
- isFromOffsetin class- ByteRange
 
- 
isSuffixpublic boolean isSuffix()Java API
 
-