Topic Path: Symbol Reference > Classes > TIdMessageDecoderInfo Class > TIdMessageDecoderInfo Methods > CheckForStart Method
TIdMessageDecoderInfo.CheckForStart Method

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

function CheckForStart(
    ASender: TIdMessage; 
    const ALine: string
): TIdMessageDecoder; virtual; abstract;
Message associated with the decoder instance.
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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.