Diffusion .NET Client Library
6.1.5
|
Record content reader. More...
Public Member Functions | |
IRecord | NextRecord () |
Returns a record of string data from the current content position. More... | |
string | NextField () |
Returns a field of string data from the current content position. More... | |
bool | HasMoreFields () |
Indicates whether there are more fields to read. More... | |
bool | HasMoreRecords () |
Indicates whether there are more records to read. More... | |
void | Reset () |
Reset the reader so that it can be used to start reading the content again from the beginning. More... | |
Record content reader.
Allows data content to be read in record/field format.
bool PushTechnology.ClientInterface.Client.Content.Metadata.IRecordContentReader.HasMoreFields | ( | ) |
Indicates whether there are more fields to read.
bool PushTechnology.ClientInterface.Client.Content.Metadata.IRecordContentReader.HasMoreRecords | ( | ) |
Indicates whether there are more records to read.
string PushTechnology.ClientInterface.Client.Content.Metadata.IRecordContentReader.NextField | ( | ) |
Returns a field of string data from the current content position.
This returns a field of String data constructed from bytes read from the current content position to the next field delimiter (or record delimiter) within the buffer or the end of the content.
HasMoreFields may be called before calling this method to determine whether there are any more fields to read.
After calling this method the content pointer will be moved beyond the delimiter found.
Empty content is equivalent to no fields. A single empty field may be represented by content containing a single Constants.FIELD_MU delimiter.
IRecord PushTechnology.ClientInterface.Client.Content.Metadata.IRecordContentReader.NextRecord | ( | ) |
Returns a record of string data from the current content position.
This returns a record of string data read from the current content position to the next record delimiter within the buffer or the end of the content.
Fields (areas delimited by field delimiters) are unpacked from within the record area. If there are no field delimiters then the returned record will contain only one field.
HasMoreRecords may be called before calling this method to determine whether there are any records to read.
Empty content is equivalent to no records.
A single empty record in the content may be represented by a single Constants.RECORD_MU delimiter. This is the only way of distinguishing between a single empty record and no records.
A record containing a single empty field may be represented by a single Constants.FIELD_MU between record delimiters, before the first record delimiter or after the final record delimiter. This is the only way of distinguishing between an empty record and a record containing a single empty field.
After calling this method the content position will be moved beyond the record read.
void PushTechnology.ClientInterface.Client.Content.Metadata.IRecordContentReader.Reset | ( | ) |
Reset the reader so that it can be used to start reading the content again from the beginning.