Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Content.ISimpleContentBuilder Interface Reference

Simple content builder for bytes and/or strings. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Content.ISimpleContentBuilder:
PushTechnology.ClientInterface.Client.Content.IContentBuilder< out TB >

Public Member Functions

ISimpleContentBuilder Put (byte[] bytes)
 Relative put of bytes into the content. More...
 
ISimpleContentBuilder PutString (object data)
 Convenience method to put the ToString() evaluation of a given object into the content. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Content.IContentBuilder< out TB >
TB SetEncoding (ContentEncoding encoding)
 /// Sets the transport encoding to be used for the content. More...
 
TB Reset ()
 Reset the builder, clearing all that has been added to it so far. This will also reset any other attributes of the content to initial default values. More...
 
IContent Build ()
 Build content. More...
 

Detailed Description

Simple content builder for bytes and/or strings.

Such a builder can be created using IContentFactory.NewBuilder{TB}()

Member Function Documentation

ISimpleContentBuilder PushTechnology.ClientInterface.Client.Content.ISimpleContentBuilder.Put ( byte[]  bytes)

Relative put of bytes into the content.

If the builder already has bytes then this will effectively append the bytes to the existing bytes to form a new byte array.

Parameters
bytesThe content to append to any existing content.
Returns
This builder.
ISimpleContentBuilder PushTechnology.ClientInterface.Client.Content.ISimpleContentBuilder.PutString ( object  data)

Convenience method to put the ToString() evaluation of a given object into the content.

The ToString() method will be called on the specified object and then the resulting string converted to bytes using the UTF-8 character set. The bytes are then written in the same way as for Put( byte[] ).

Parameters
data
Returns

The documentation for this interface was generated from the following file: