Interface ResumableTransfer

All Known Implementing Classes:
ResumableFileDownload, ResumableFileUpload

public interface ResumableTransfer
Contains the information of a pausible upload or download; such information can be used to resume the upload or download later on
See Also:
  • Method Details

    • serializeToFile

      default void serializeToFile(Path path)
      Persists this download object to a file in Base64-encoded JSON format.
      Parameters:
      path - The path to the file to which you want to write the serialized download object.
    • serializeToOutputStream

      default void serializeToOutputStream(OutputStream outputStream)
      Writes the serialized JSON data representing this object to an output stream. Note that the OutputStream is not closed or flushed after writing.
      Parameters:
      outputStream - The output stream to write the serialized object to.
    • serializeToString

      default String serializeToString()
      Returns the serialized JSON data representing this object as a string.
    • serializeToBytes

      default SdkBytes serializeToBytes()
      Returns the serialized JSON data representing this object as an SdkBytes object.
      Returns:
      the serialized JSON as SdkBytes
    • serializeToInputStream

      default InputStream serializeToInputStream()
      Returns the serialized JSON data representing this object as an InputStream.
      Returns:
      the serialized JSON input stream