public interface IMessageReader

Summary

Interface for analyzing application messages.

Remarks

Subinterfaces provide specialized data-reading methods. This base interface deals with the lowest common denominator: bytes, with no special encodings for higher-level objects.

Property Summary

Type Name Summary
byte[] BodyBytes (r)

Retrieve the message body, as a byte array.

Stream BodyStream (r)

Retrieve the Stream being used to read from the message body.

IDictionary Headers (r)

Retrieves the content header properties of the message being read.

Method Summary

Name Summary
int RawRead(byte[] target, int offset, int length)

Read bytes from the body stream into a section of an existing byte array, without encoding or interpretation. Returns the number of bytes read from the body and written into the target array, which may be less than the number requested if the end-of-stream is reached.

int RawRead()

Read a single byte from the body stream, without encoding or interpretation. Returns -1 for end-of-stream.

Property Detail

byte[] BodyBytes (r)

Summary

Retrieve the message body, as a byte array.

Stream BodyStream (r)

Summary

Retrieve the Stream being used to read from the message body.

IDictionary Headers (r)

Summary

Retrieves the content header properties of the message being read.

Method Detail

RawRead

int RawRead(byte[] target, int offset, int length)

Return type int
Parameters
Name Type
target byte[]
offset int
length int

Summary

Read bytes from the body stream into a section of an existing byte array, without encoding or interpretation. Returns the number of bytes read from the body and written into the target array, which may be less than the number requested if the end-of-stream is reached.

RawRead

int RawRead()

Return type int

Summary

Read a single byte from the body stream, without encoding or interpretation. Returns -1 for end-of-stream.