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 Type
    Method
    Description
    Supported 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 a RequestBody.
  • Method Details

    • write

      <T> software.amazon.awssdk.core.sync.RequestBody write(T object)
      Converts object into a RequestBody.
      Type Parameters:
      T - - type of the object
      Parameters:
      object - - the object to serialize
      Returns:
      the request body
    • read

      <T> T read(InputStream is, Class<T> clazz)
      Reads S3 object from the input stream into a Java object.
      Type Parameters:
      T - - the the type of the object
      Parameters:
      is - - the input stream
      clazz - - the class of the object
      Returns:
      deserialized object
    • contentType

      String contentType()
      Supported content type.
      Returns:
      the content type