TWriter is a specialized filer object that writes data to its associated stream.
TWriter = class(TFiler);
class TWriter : public TFiler;
TWriter is used internally by the component streaming system to write information associated with a component, such as published properties of components or custom property data, to a stream. TWriter handles the mechanics of writing the data associated with a component to a stream. It is the writer object, rather than the stream, that is responsible for handling the complexities of streaming components. These include methods for:
Other methods and properties of TWriter are used for interacting with stream and component objects.
Do not directly create writer objects. Writers are automatically created in stream object methods or in global routines that initiate the streaming process. These include:
Once the streaming process is underway, programs do not need to directly manipulate writer objects. The interaction between the writer, component, and stream objects happens automatically in methods of these objects that make calls to each other.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!