Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageDecoderInfo.CheckForStart Method

Specifies a method for retrieving a decoder class instance, and associating the decoder with a given message.

Pascal
function CheckForStart(
    ASender: TIdMessage; 
    const ALine: string
): TIdMessageDecoder; virtual; abstract;
Parameters 
Description 
ASender 
Message associated with the decoder instance.
 
ALine 
Encoded message part content to be examined to determine the appropriate decoder class. 

TIdMessageDecoder - Decoder class instance to use for the message part.

CheckForStart is an abstract virtual function in TIdMessageDecoderInfo that specifies a method for retrieving a decoder class instance, and associating the decoder class instance with a specific message. 

ASender is the TIdMessage to be associated with the decoder class instance. 

ALine is a line from the message part that will be examined to determine if the registered decoder can be used for decoding the message part. 

Descendant classes, like TIdMessageDecoderInfoMIME and TIdMessageDecoderInfoUUE, must implement comparisons to determine if ALine contains a marker signifying the start of a block using the specific encoding algorithm. If ALine contains the appropriate signature, a message decoder instance is created for ASender in the function return value. Otherwise the function return value is Nil.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.