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 Summary
Modifier and TypeMethodDescriptiondefault SdkBytes
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
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
Returns the serialized JSON data representing this object as a string.
-
Method Details
-
serializeToFile
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
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
Returns the serialized JSON data representing this object as a string. -
serializeToBytes
Returns the serialized JSON data representing this object as anSdkBytes
object.- Returns:
- the serialized JSON as
SdkBytes
-
serializeToInputStream
Returns the serialized JSON data representing this object as anInputStream
.- Returns:
- the serialized JSON input stream
-