Package io.awspring.cloud.s3
Class InMemoryBufferingS3OutputStreamProvider
java.lang.Object
io.awspring.cloud.s3.InMemoryBufferingS3OutputStreamProvider
- All Implemented Interfaces:
S3OutputStreamProvider
public class InMemoryBufferingS3OutputStreamProvider
extends Object
implements S3OutputStreamProvider
Creates
InMemoryBufferingS3OutputStream
.- Since:
- 3.0
- Author:
- Sam Garfinkel
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryBufferingS3OutputStreamProvider
(software.amazon.awssdk.services.s3.S3Client s3Client, S3ObjectContentTypeResolver contentTypeResolver) InMemoryBufferingS3OutputStreamProvider
(software.amazon.awssdk.services.s3.S3Client s3Client, S3ObjectContentTypeResolver contentTypeResolver, DataSize bufferSize) -
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
-
InMemoryBufferingS3OutputStreamProvider
public InMemoryBufferingS3OutputStreamProvider(software.amazon.awssdk.services.s3.S3Client s3Client, @Nullable S3ObjectContentTypeResolver contentTypeResolver) -
InMemoryBufferingS3OutputStreamProvider
public InMemoryBufferingS3OutputStreamProvider(software.amazon.awssdk.services.s3.S3Client s3Client, @Nullable S3ObjectContentTypeResolver contentTypeResolver, @Nullable DataSize bufferSize)
-
-
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
-