Indy 9
|
TIdMessageEncoderUUEBase = class(TIdMessageEncoder)
procedure Encode(ASrc: TStream; ADest: TStream); override;
Encode uses an instance of the TIdEncoder3to4 object to perform encoding of the values in the ASrc input stream, and writes the encoded message part to the ADest output stream.
Encode constructs the entire UUEncode packet including the header, body, and trailer sections. The header section includes the keyword "begin" followed by the space-delimited values for PermissionCode, Filename, and the EOL character sequence. The body section consists of one or more lines containing the encoded output form the TIdEncoder3to4 object. Each line will contain not more than 45 bytes and the EOL character sequence. The trailer section contains the FillChar value followed by EOL, the keyword "end", and an additional EOL character sequence.