Indy 9
|
TIdMessageEncoder = class(TIdComponent)
TIdMessageEncoder descendants, like TIdMessageEncoderMIME, TIdMessageEncoderUUE, and TIdMessageEncoderXXE, further refine the message Encoder framework by implementing support for specific encoding schemes.
property Filename: string;
property PermissionCode: integer;
PermissionCode is expressed as an Integer, in the form used by the Unix user permission flags. The default value for PermissionCode is 660, as established in the Create contructor.
constructor Create(AOwner: TComponent); override;
procedure Encode(const AFilename: string; ADest: TStream); overload; procedure Encode(ASrc: TStream; ADest: TStream); virtual; abstract; overload;
AFilename specifies the file name used to retrieve the un-encoded contents of the message part.
ASrc is a TStream descendant used to retrieve the un-encoded contents of the RFC message part.
ADest is a TStream descendant where the encoded message part will be written.
The file-based variant of Encode reads the contents of the file specified in AFilename, and writes the encoded contents to the stream specified in ADest. This variant of Encode creates a temporary file stream for AFilename, and calls the abstract Encode method using the temporary file stream.
The Stream-based variant of Encode is an abstract virtual procedure, and specifies the interface for using TStreams as bothe the source of the RFC message part and the destination for the Descendant classes, like TIdMessageEncoderMIME, TIdMessageEncoderUUE, and TIdMessageEncoderXXE, must implement the Encode method to provide support for genmerating the encoded message part contents using a specific encoding algorithm.
AFilename specifies the file name used to retrieve the un-encoded contents of the message part.
ASrc is a TStream descendant used to retrieve the un-encoded contents of the RFC message part.
ADest is a TStream descendant where the encoded message part will be written.
The file-based variant of Encode reads the contents of the file specified in AFilename, and writes the encoded contents to the stream specified in ADest. This variant of Encode creates a temporary file stream for AFilename, and calls the abstract Encode method using the temporary file stream.
The Stream-based variant of Encode is an abstract virtual procedure, and specifies the interface for using TStreams as bothe the source of the RFC message part and the destination for the Descendant classes, like TIdMessageEncoderMIME, TIdMessageEncoderUUE, and TIdMessageEncoderXXE, must implement the Encode method to provide support for genmerating the encoded message part contents using a specific encoding algorithm.