public static StorageObjectSummary createFromS3ObjectSummary ( S3ObjectSummary objSummary ) { return new StorageObjectSummary ( objSummary . getBucketName ( ) , objSummary . getKey ( ) , // S3 ETag is not always MD5, but since this code path is only // used in skip duplicate files in PUT command, It's not // critical to guarantee that it's MD5 objSummary . getETag ( ) , objSummary . getSize ( ) ) ; }
Contructs a StorageObjectSummary object from the S3 equivalent S3ObjectSummary