code: public static String[] toBucketNameObjectKey(String s3ObjectHttpUrl) {
          if (s3ObjectHttpUrl == null) {
              return null;
          }
  
          int start = s3ObjectHttpUrl.indexOf(AMAZONAWS_COM);
          int length = s3ObjectHttpUrl.length();
  
          if (start != -1) {
              String bucketNameAndObjectKey = s3ObjectHttpUrl.substring(start + AMAZONAWS_COM.length(), length);
              return bucketNameAndObjectKey.split(FORWARD_SLASH, 2);
          }
          return null;
  
      }
docs: Split an HTTP representation of an Amazon S3 URL to bucket name and object key.
  <p>
  For example:
  <pre>
  input: s3ObjectHttpUrl = http://s3-us-west-2.amazonaws.com/mybucket/myobjectpath1/myobjectpath2/myobject.extension
  output: {"mybucket", "myobjectpath1/myobjectpath2/myobject.extension"}
  </pre>
  
  @param s3ObjectHttpUrl the URL of the S3 object to split.
  @return a two-element string array: the first element is the bucket name,
  and the second element is the object key.