TS3GetObjectTarget
Class in AWS.S3
A factory class for constructing GetObject response targets.
Ancestors
TObject
Methods
ToFile
class function ToFile(const AFilename: string): IS3GetObjectFileTarget;
Construct a GetObject response target directing the object content to a file.
Parameters
| Name | Description |
|---|---|
AFilename | Specify 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;
Construct a GetObject response target directing the object content to a custom stream.
Parameters
| Name | Description |
|---|---|
ATargetStream | Specify a target stream to receive the GetObject response content. |
AOwnsTargetStream | Specify whether ATargetStream is owned by the target and automatically freed upon destroy. |
Returns
A GetObject response target.
ToTemporaryFile
class function ToTemporaryFile: IS3GetObjectFileTarget;
Construct a GetObject response target directing the object content to a temporary file.
Returns
A GetObject response target.