Indy 9
|
TIdDecoderUUE = class(TIdDecoderUUEBase)
TIdDecoderUUE uses the 4-byte to 3-byte decoding algorithm defined in TIdDecoderUUEBase. TIdDecoderUUEBase handles the UUEncode body line format, which consists of the encoded length followed by the encoded data.
TIdDecoderUUE is used by other Indy coder classes, such as TIdMessageDecoderUUE, that handle UUEncode message streams in RFC 822-compliant mail messages.
constructor Create(AOwner: TComponent); override;
procedure DecodeToStream(AIn: string; ADest: TStream); override;
AIn contains the UUEncoded input values that will be restored to their original binary format.
ADest is a TStream descendant that will receive the results of the decoding algorithm.
DecodeToStream modifies all AIn by replacing all instances of the SPace character (Decimal 32) in the encoded values with the '`' character (Decimal 96) to support older versions of UUEncode which used the space character in the UUEncode alphabet. DecodeToStream calls the inherited DecodeToStream method using the modified AIn value to perform the UUDecode algorithm.