RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomContentProducer.ContentFromStream Method

Returns the content produced in response to input read from a stream.

Pascal
function ContentFromStream(Stream: TStream): string; virtual;
C++
virtual __fastcall AnsiString ContentFromStream(TStream Stream);

Call ContentFromStream to retrieve the content produced by the content producer based on the information provided by the Stream parameter. TCustomContentProducer ignores the Stream parameter and returns the value created by the Content method.  

Descendants of TCustomContentProducer override this method to interpret streamed input in their own way. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!