Package io.awspring.cloud.s3
Interface S3ObjectConverter
- All Known Implementing Classes:
Jackson2JsonS3ObjectConverter
public interface S3ObjectConverter
Converter used to serialize Java objects into S3 objects.
- Since:
- 3.0
- Author:
- Maciej Walkowiak
-
Method Summary
Modifier and TypeMethodDescriptionSupported content type.<T> T
read
(InputStream is, Class<T> clazz) Reads S3 object from the input stream into a Java object.<T> software.amazon.awssdk.core.sync.RequestBody
write
(T object) Converts object into aRequestBody
.
-
Method Details
-
write
<T> software.amazon.awssdk.core.sync.RequestBody write(T object) Converts object into aRequestBody
.- Type Parameters:
T
- - type of the object- Parameters:
object
- - the object to serialize- Returns:
- the request body
-
read
Reads S3 object from the input stream into a Java object.- Type Parameters:
T
- - the the type of the object- Parameters:
is
- - the input streamclazz
- - the class of the object- Returns:
- deserialized object
-
contentType
String contentType()Supported content type.- Returns:
- the content type
-