Indy 9
|
TIdEncoderQuotedPrintable = class(TIdEncoder)
Use TIdDecoderQuotedPrintable to return QUoted-Printable values to their un-encoded state.
function Encode(ASrcStream: TStream; const ABytes: integer = MaxInt): string; override;
ASrcStream is a TStream descendant that contains the un-encoded values to be used in the encoding operation. When ASrcStream has a size of 0, no operation is performed by the Encode method.
ABytes is the number of Bytes in ASrcStream to be affected by the Encode method. If ABytes is smaller than ASrcStream.Size, only ABytes characters in the stream will be used for the encoding operation.
Encode uses an 8K buffer to read values from ASrcStream for the encoding algorithm. Note: Encode does not reset the position of ASrcStream before or after encoding operations.
Use TIdDecoderPrintable.DecodeToStream to convert the return value from Encode to their un-encoded state.