public interface ResumableTransfer
FileDownload.pause()| Modifier and Type | Method and Description |
|---|---|
default SdkBytes |
serializeToBytes()
Returns the serialized JSON data representing this object as an
SdkBytes 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 an
InputStream. |
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.
|
default void serializeToFile(Path path)
path - The path to the file to which you want to write the serialized download object.default void serializeToOutputStream(OutputStream outputStream)
OutputStream is not closed or flushed after writing.outputStream - The output stream to write the serialized object to.default String serializeToString()
default SdkBytes serializeToBytes()
SdkBytes object.SdkBytesdefault InputStream serializeToInputStream()
InputStream.Copyright © 2023. All rights reserved.