StreamElementInfo

Overview

The StreamElementInfo class is a base abstract class that represents a serializer/deserializer for the DataStreamer-specific data stream format.

This class is used as the base class for the Bin2ElementInfo used by the (Bin2DataStreamer.

Location

 

constructor (Object)

Creates a new instance of the StreamElementInfo class and reads the next element from the source object using the read method.

 

constructor(aSource: Object)

 

StreamElementInfo(Object aSource)

Parameters:

  • aSource: The data source used by the StreamElementInfo object for reading or writing.

constructor (String, StreamElementType)

Creates a new instance of the StreamElementInfo class and sets the elementType property.

 

constructor(aName: String; anElementType: StreamElementType)

 

StreamElementInfo(String aName, StreamElementType anElementType)

Parameters:

  • aName: A name of the element.
  • anElementType: A type of the element.

ElementType

 

property ElementType: StreamElementType read write;

 

StreamElementType ElementType { __get; __set; }

Fields

 

property Fields: SchemaFieldCollection read;

 

SchemaFieldCollection Fields { __get; }

Key

 

property Key: String read;

 

String Key { __get; }

Name

 

property Name: String read write;

 

String Name { __get; __set; }

read

The method is expected to read the next StreamElementInfo item from the provided data source object.

 

method read(aSource: Object)

 

void read(Object aSource)

Parameters:

  • aSource: A data source to read from.

write

The method is expected to write the current object to the provided data source.

 

method write(aSource: Object)

 

void write(Object aSource)

Parameters:

  • aSource: A data source to write to.

 

ElementType

 

property ElementType: StreamElementType read write;

 

StreamElementType ElementType { __get; __set; }

Fields

 

property Fields: SchemaFieldCollection read;

 

SchemaFieldCollection Fields { __get; }

Key

 

property Key: String read;

 

String Key { __get; }

Name

 

property Name: String read write;

 

String Name { __get; __set; }

 

constructor (Object)

Creates a new instance of the StreamElementInfo class and reads the next element from the source object using the read method.

 

constructor(aSource: Object)

 

StreamElementInfo(Object aSource)

Parameters:

  • aSource: The data source used by the StreamElementInfo object for reading or writing.

constructor (String, StreamElementType)

Creates a new instance of the StreamElementInfo class and sets the elementType property.

 

constructor(aName: String; anElementType: StreamElementType)

 

StreamElementInfo(String aName, StreamElementType anElementType)

Parameters:

  • aName: A name of the element.
  • anElementType: A type of the element.

read

The method is expected to read the next StreamElementInfo item from the provided data source object.

 

method read(aSource: Object)

 

void read(Object aSource)

Parameters:

  • aSource: A data source to read from.

write

The method is expected to write the current object to the provided data source.

 

method write(aSource: Object)

 

void write(Object aSource)

Parameters:

  • aSource: A data source to write to.