Skip to main content

TS3GetObjectTarget

Class in AWS.S3

A factory class for constructing GetObject response targets.

Ancestors

  • TObject

Methods

ToFile

class function ToFile(const AFilename: string): IS3GetObjectFileTarget;

IS3GetObjectFileTarget

Construct a GetObject response target directing the object content to a file.

Parameters

NameDescription
AFilenameSpecify the name of a file to write the GetObject response content to.

Returns

A GetObject response target.

ToStream

class function ToStream(const ATargetStream: TStream; AOwnsTargetStream: Boolean = True): IS3GetObjectTarget;

IS3GetObjectTarget

Construct a GetObject response target directing the object content to a custom stream.

Parameters

NameDescription
ATargetStreamSpecify a target stream to receive the GetObject response content.
AOwnsTargetStreamSpecify whether ATargetStream is owned by the target and automatically freed upon destroy.

Returns

A GetObject response target.

ToTemporaryFile

class function ToTemporaryFile: IS3GetObjectFileTarget;

IS3GetObjectFileTarget

Construct a GetObject response target directing the object content to a temporary file.

Returns

A GetObject response target.