static String encode(ByteBufferRange range){
  String start=Hex.encodeHexString(toArray(range.getStart()));
  String end=Hex.encodeHexString(toArray(range.getEnd()));
  int prefix=getCommonPrefixLength(start,end);
  return start.substring(0,prefix) + ':' + start.substring(prefix)+ '-'+ end.substring(prefix);
}

static String encode ( ByteBufferRange range ) { String start = Hex . encodeHexString ( toArray ( range . getStart ( ) ) ) ; String end = Hex . encodeHexString ( toArray ( range . getEnd ( ) ) ) ; int prefix = getCommonPrefixLength ( start , end ) ; return start . substring ( 0 , prefix ) + ':' + start . substring ( prefix ) + '-' + end . substring ( prefix ) ; }
returns a string that looks like " commonprefix : startsuffix - endsuffix " , hex - encoding the bytes .
