Indy 9
TIdDecoderQuotedPrintable
Hierarchy, Properties, Methods, See Also, Unit: IdCoderQuotedPrintable
Implements a decoder for the Quoted-Printable encoding scheme.
TIdDecoderQuotedPrintable = class(TIdDecoder)
Unit
IdCoderQuotedPrintable
Description
TIdDecoderQuotedPrintable is a TIdDecoder descendant that implements the decoding algorithm for the Quoted-Printable encoding scheme. TIdDecoderQuotedPrintable will convert values that have been encoded using TIdEncoderQuotedPrintable to their original un-encoded state. TIdDecoderQuotedPrintable conforms the decoding algorithm as described in the Internet Standards document:

  • RFC 2045, Multipurpose Internet Mail Extensions (MIME), Part One: Format of Internet Message Bodies, Section 6.7 Quoted-Printable Content Transfer Encoding (http://www.rfc-editor.org/rfc/rfc2045.txt)

TIdDecoderQuotedPrintable.DecodeToStream
TIdDecoderQuotedPrintable, See Also
Decodes a Quoted-Printable-encoded string and stores the result in a Stream.
procedure DecodeToStream(AIn: string; ADest: TStream); override;
Parameters
AIn: string
Value to be decoded.
ADest: TStream
Destination for the decoded value.
Description
DecodeToStream is an overridden procedure in TIdDecoderQuotedPrintable that implements the decoding algorithm for the Quoted-Printable encoding scheme. DecodeToStream converts the Quoted-Printable value in AIn to it's original un-encoded form, and stores the result in the Stream ADest.

AIn contains a value in the format generated by TIdEncoderQuotedPrintable.Encode. DecodeToStream will remove any trailing whitespace in AIn before performing the decoding algorithm, in accordance with RFC 2045. If AIn is an empty string (''), DecodeToStream performs no processing and exits from the method.

ADest is a TStream descendant that will receive the un-encoded value of AIn.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.