Diffusion .NET Client Library
6.1.5
|
Simple content builder for bytes and/or strings. More...
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... | |
Simple content builder for bytes and/or strings.
Such a builder can be created using IContentFactory.NewBuilder{TB}()
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.
bytes | The content to append to any existing content. |
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[] ).
data |