downloadStream

@NotNull
open fun downloadStream(@NonNull @NotNull entity: @NotNull EntityValue, @NonNull @NotNull link: @NotNull StreamLink): @NotNull DataQuery(source)

See downloadStream(EntityValue, StreamLink, HttpHeaders, RequestOptions).

Return

(see linked method).

Parameters

entity

Entity parameter.

link

Link parameter.


@NotNull
open fun downloadStream(@NonNull @NotNull entity: @NotNull EntityValue, @NonNull @NotNull link: @NotNull StreamLink, @Nullable @Nullable headers: @Nullable HttpHeaders): @NotNull DataQuery(source)

See downloadStream(EntityValue, StreamLink, HttpHeaders, RequestOptions).

Return

(see linked method).

Parameters

entity

Entity parameter.

link

Link parameter.

headers

Headers parameter.


@NotNull
open fun downloadStream(@NonNull @NotNull entity: @NotNull EntityValue, @NonNull @NotNull link: @NotNull StreamLink, @Nullable @Nullable headers: @Nullable HttpHeaders, @Nullable @Nullable options: @Nullable RequestOptions): @NotNull DataQuery(source)

Add a "download stream" query to the batch, to obtain a stream for downloading the content of a stream property from the target system. Caution: streams are often used for large content that may not fit (all at once) in available application memory. Having too many threads simultaneously downloading streams, or using ByteStream.readAndClose, may result in out-of-memory conditions on memory-constrained devices.

See Also:

QueryResult.getByteStream, QueryResult.getCharStream.

Return

A data query representing the stream download request.

Parameters

entity

Entity containing the stream property whose content is to be downloaded.

link

Stream link for the stream to be downloaded.

headers

(nullable) Request-specific headers.

options

(nullable) Request-specific options.