public PutObjectResponse putObject(String bucketName, String key, File file, ObjectMetadata metadata) {
        return this.putObject(new PutObjectRequest(bucketName, key, file, metadata));
    }
public PutObjectResponse putObject ( String bucketName , String key , File file , ObjectMetadata metadata ) { return this . putObject ( new PutObjectRequest ( bucketName , key , file , metadata ) ) ; }
Uploads the specified file and object metadata to Bos under the specified bucket and key name.

@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param file The file containing the data to be uploaded to Bos.
@param metadata Additional metadata instructing Bos how to handle the uploaded data
(e.g. custom user metadata, hooks for specifying content type, etc.).
@return A PutObjectResponse object containing the information returned by Bos for the newly created object.