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:
FileDownload.pause()
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SdkBytes
serializeToBytes()
Returns the serialized JSON data representing this object as anSdkBytes
object.default void
serializeToFile(Path path)
Persists this download object to a file in Base64-encoded JSON format.default InputStream
serializeToInputStream()
Returns the serialized JSON data representing this object as anInputStream
.default void
serializeToOutputStream(OutputStream outputStream)
Writes the serialized JSON data representing this object to an output stream.default String
serializeToString()
Returns the serialized JSON data representing this object as a string.
-
-
-
Method Detail
-
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 theOutputStream
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 anSdkBytes
object.- Returns:
- the serialized JSON as
SdkBytes
-
serializeToInputStream
default InputStream serializeToInputStream()
Returns the serialized JSON data representing this object as anInputStream
.- Returns:
- the serialized JSON input stream
-
-