DataStreamer Class

From RemObjects Software

Jump to: navigation, search

This is a Data Abstract Architecture entry
Feel free to add your notes to this topic below.



Overview (.NET)

This provides the abstract base class streamers for serialization and deserialization of deltas and data in Data Abstract.

You will use one of the concrete implementations of this class (such as the BinDataStreamer) in your application. You can also derive your own descendants of DataStreamer to implement a custom streaming format.

Namespace

Declaration (C#)

[ToolboxBitmap(typeof(DataStreamer), "Glyphs.DataStreamer.bmp")]
public abstract class DataStreamer : BaseComponent;

Hierarchy

Properties

Property
Type
Description
Elements NamedObjectCollection After reading a delta or data table, this property will contain the elements read.
StreamType StreamType The output type of this streamer class. Binary formats will return the StreamType.Binary format.


Methods

Method
Description
CountElements Returns the number of elements in this streamer that have an element type matching the given parameter.
BeginWriteDataReader
DataStreamer Default constructor for DataStreamer.
EndWriteDataReader
FinalizeStreamer Finalize the read/writing of data.

This method should be called after all elements are written or when reading is complete.

InitializeStreamer Initialize this streamer object.

First parameter should contain the Stream or String containing the data to process. Second parameter should contain the mode in which this Streamer should be initialized.

ListElements Returns all elements in the stream that have their ElementType matching the given parameter.
ReadDataTable Reads the contents of a DataTable from the stream.

This method will throw an exception if no DataTable by the name passed in the first parameter can be found in the stream.

ReadDataTableSchema Reads the schema of a DataTable and returns it.
ReadDelta This method will return a delta from the stream.

If there is no delta by the name passed it will throw an exception.

WriteDataReader Writes the contents of a DataReader and the associated schema to the stream.
WriteDataTable Writes a DataTable to the stream.

This method will throw an exception if a DataTable by the same name already exists on the stream.

WriteDelta This method will write a delta to the stream.

If there already is a delta by this name it will throw an exception.


See Also


Product: RemObjects Data Abstract
Current version: Data Abstract 'Vinci' (5.0)

ListsGlossaryFeaturesHow ToDriversComponentsToolsSamplesArticlesArchitectureIssues

Personal tools