Class ByteRange
java.lang.Object
com.here.platform.data.client.model.ByteRange
Indicates which part of a resource we are interested in processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteRangeall()Indicates that we should process all the bytes in a resource.static booleancontainsAllBytes(ByteRange range) Indicates if aByteRangecontains all bytes.abstract scala.Option<ByteRange>dropBytes(long count) Truncates the range bycountbytes from the beginning.static ByteRangefromOffset(long start) Indicates that we should process all the bytes from start to end of resource.static ByteRangefromRange(long start, long end) Indicates that we should process all the bytes from start to end (inclusive).
-
Constructor Details
-
ByteRange
public ByteRange()
-
-
Method Details
-
all
Indicates that we should process all the bytes in a resource. -
fromOffset
Indicates that we should process all the bytes from start to end of resource. -
fromRange
Indicates that we should process all the bytes from start to end (inclusive). -
containsAllBytes
Indicates if aByteRangecontains all bytes. -
dropBytes
Truncates the range bycountbytes from the beginning.- Parameters:
count-- Returns:
Some(range)with truncated range if it's available,Noneotherwise.
-