public class BytesMessageBuilder

Summary

Constructs AMQP Basic-class messages binary-compatible with QPid's "BytesMessage" wire encoding.

Field Summary

Flags Type Name Summary
public const string MimeType

MIME type associated with QPid BytesMessages.

Constructor Summary

Flags Name Summary
public BytesMessageBuilder(IModel model)

Construct an instance for writing. See .

public BytesMessageBuilder(IModel model, int initialAccumulatorSize)

Construct an instance for writing. See .

Method Summary

Flags Name Summary
public virtual string GetDefaultContentType()

Returns the default MIME content type for messages this instance constructs, or null if none is available or relevant.

public virtual final IBytesMessageBuilder Write(byte[] source, int offset, int count)

Write a section of a byte array into the message body being assembled.

public virtual final IBytesMessageBuilder WriteByte(byte value)

Writes a value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteBytes(byte[] source)

Write a array into the message body being assembled.

public virtual final IBytesMessageBuilder WriteChar(char value)

Writes a value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteDouble(double value)

Writes a value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteInt16(short value)

Writes a value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteInt32(int value)

Writes an value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteInt64(long value)

Writes a value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteSingle(single value)

Writes a value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteString(string value)

Writes a value into the message body being assembled.

Field Detail

public const string MimeType

Summary

MIME type associated with QPid BytesMessages.

Constructor Detail

BytesMessageBuilder

public BytesMessageBuilder(IModel model)

Parameters
Name Type
model IModel

Summary

Construct an instance for writing. See .

BytesMessageBuilder

public BytesMessageBuilder(IModel model, int initialAccumulatorSize)

Parameters
Name Type
model IModel
initialAccumulatorSize int

Summary

Construct an instance for writing. See .

Method Detail

GetDefaultContentType

public virtual string GetDefaultContentType()

Flags public virtual
Return type string

Summary

Returns the default MIME content type for messages this instance constructs, or null if none is available or relevant.

Write

public virtual final IBytesMessageBuilder Write(byte[] source, int offset, int count)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
source byte[]
offset int
count int

Summary

Write a section of a byte array into the message body being assembled.

WriteByte

public virtual final IBytesMessageBuilder WriteByte(byte value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value byte

Summary

Writes a value into the message body being assembled.

WriteBytes

public virtual final IBytesMessageBuilder WriteBytes(byte[] source)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
source byte[]

Summary

Write a array into the message body being assembled.

WriteChar

public virtual final IBytesMessageBuilder WriteChar(char value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value char

Summary

Writes a value into the message body being assembled.

WriteDouble

public virtual final IBytesMessageBuilder WriteDouble(double value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value double

Summary

Writes a value into the message body being assembled.

WriteInt16

public virtual final IBytesMessageBuilder WriteInt16(short value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value short

Summary

Writes a value into the message body being assembled.

WriteInt32

public virtual final IBytesMessageBuilder WriteInt32(int value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value int

Summary

Writes an value into the message body being assembled.

WriteInt64

public virtual final IBytesMessageBuilder WriteInt64(long value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value long

Summary

Writes a value into the message body being assembled.

WriteSingle

public virtual final IBytesMessageBuilder WriteSingle(single value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value single

Summary

Writes a value into the message body being assembled.

WriteString

public virtual final IBytesMessageBuilder WriteString(string value)

Flags public virtual final
Return type IBytesMessageBuilder
Parameters
Name Type
value string

Summary

Writes a value into the message body being assembled.