Package io.awspring.cloud.s3
Class DiskBufferingS3OutputStreamProvider
java.lang.Object
io.awspring.cloud.s3.DiskBufferingS3OutputStreamProvider
- All Implemented Interfaces:
S3OutputStreamProvider
Creates
DiskBufferingS3OutputStream
.- Since:
- 3.0
- Author:
- Maciej Walkowiak
-
Constructor Summary
ConstructorsConstructorDescriptionDiskBufferingS3OutputStreamProvider
(software.amazon.awssdk.services.s3.S3Client s3Client, S3ObjectContentTypeResolver contentTypeResolver) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String bucket, String key, ObjectMetadata metadata) Creates anOutputStream
that writes data to S3.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.awspring.cloud.s3.S3OutputStreamProvider
create
-
Constructor Details
-
DiskBufferingS3OutputStreamProvider
public DiskBufferingS3OutputStreamProvider(software.amazon.awssdk.services.s3.S3Client s3Client, @Nullable S3ObjectContentTypeResolver contentTypeResolver)
-
-
Method Details
-
create
public S3OutputStream create(String bucket, String key, @Nullable ObjectMetadata metadata) throws IOException Description copied from interface:S3OutputStreamProvider
Creates anOutputStream
that writes data to S3.- Specified by:
create
in interfaceS3OutputStreamProvider
- Parameters:
bucket
- - the bucket namekey
- - the object keymetadata
- - object metadata, can benull
- Returns:
- the S3 output stream
- Throws:
IOException
- - when IO operation fails
-