code: private ImmutableList<ByteRange> parseRangeHeader(final String rangeHeader,
                                                      final int resourceLength) {
      final ImmutableList.Builder<ByteRange> builder = ImmutableList.builder();
      if (rangeHeader.contains("=")) {
        final String[] parts = rangeHeader.split("=");
        if (parts.length > 1) {
          final List<String> ranges = Splitter.on(",").trimResults().splitToList(parts[1]);
          for (final String range : ranges) {
            builder.add(ByteRange.parse(range, resourceLength));
          }
        }
      }
      return builder.build();
    }
docs: Parses a given Range header for one or more byte ranges.
  
  @param rangeHeader    Range header to parse
  @param resourceLength Length of the resource in bytes
  @return List of parsed ranges