private Range parseContentRange(String contentRange){
  Matcher matcher=CONTENT_RANGE_PATTERN.matcher(contentRange);
  checkState(matcher.matches(),"Unexpected Content-Range header: %s",contentRange);
  long start=Long.parseLong(matcher.group(1));
  long end=Long.parseLong(matcher.group(2));
  return new Range(start,end - start + 1);
}

private Range parseContentRange ( String contentRange ) { Matcher matcher = CONTENT_RANGE_PATTERN . matcher ( contentRange ) ; checkState ( matcher . matches ( ) , "Unexpected Content-Range header: %s" , contentRange ) ; long start = Long . parseLong ( matcher . group ( 1 ) ) ; long end = Long . parseLong ( matcher . group ( 2 ) ) ; return new Range ( start , end - start + 1 ) ; }
parses an http " content - range " header in an http 206 partial content response .
