public class BytesMessageBuilder

Summary

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

Field Summary

Flags Type Name Summary
public initonly static string MimeType

MIME type associated with QPid BytesMessages.

Constructor Summary

Flags Name Summary
public BytesMessageBuilder(IModel model, int initialAccumulatorSize)

Construct an instance for writing. See superclass.

public BytesMessageBuilder(IModel model)

Construct an instance for writing. See superclass.

Method Summary

Flags Name Summary
public virtual string GetDefaultContentType()

Override superclass method to answer our characteristic MIME type.

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 byte value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteBytes(byte[] source)

Write a byte array into the message body being assembled.

public virtual final IBytesMessageBuilder WriteChar(char value)

Writes a char value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteDouble(double value)

Writes a double value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteInt16(short value)

Writes a short value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteInt32(int value)

Writes an int value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteInt64(long value)

Writes a long value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteSingle(single value)

Writes a float value into the message body being assembled.

public virtual final IBytesMessageBuilder WriteString(string value)

Writes a string value into the message body being assembled.

Field Detail

public initonly static string MimeType

Summary

MIME type associated with QPid BytesMessages.

Constructor Detail

BytesMessageBuilder

public BytesMessageBuilder(IModel model, int initialAccumulatorSize)

Parameters
Name Type
model IModel
initialAccumulatorSize int

Summary

Construct an instance for writing. See superclass.

BytesMessageBuilder

public BytesMessageBuilder(IModel model)

Parameters
Name Type
model IModel

Summary

Construct an instance for writing. See superclass.

Method Detail

GetDefaultContentType

public virtual string GetDefaultContentType()

Flags public virtual
Return type string

Summary

Override superclass method to answer our characteristic MIME type.

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 byte 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 byte 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 char 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 double 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 short 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 int 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 long 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 float 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 string value into the message body being assembled.