Class ByteRange

java.lang.Object
com.here.platform.data.client.model.ByteRange
Direct Known Subclasses:
Offset, Range

public abstract class ByteRange extends Object
Indicates which part of a resource we are interested in processing.
  • Constructor Details

    • ByteRange

      public ByteRange()
  • Method Details

    • all

      public static ByteRange all()
      Indicates that we should process all the bytes in a resource.
    • fromOffset

      public static ByteRange fromOffset(long start)
      Indicates that we should process all the bytes from start to end of resource.
    • fromRange

      public static ByteRange fromRange(long start, long end)
      Indicates that we should process all the bytes from start to end (inclusive).
    • containsAllBytes

      public static boolean containsAllBytes(ByteRange range)
      Indicates if a ByteRange contains all bytes.
    • dropBytes

      public abstract scala.Option<ByteRange> dropBytes(long count)
      Truncates the range by count bytes from the beginning.

      Parameters:
      count -
      Returns:
      Some(range) with truncated range if it's available, None otherwise.