com.ibm.commerce.messaging.outboundservice
Class MSIByteBuffer

com.ibm.commerce.messaging.outboundservice.MSIByteBuffer
All Implemented Interfaces:
java.io.Serializable

public class MSIByteBuffer
implements java.io.Serializable

An implementation of the IByteBuffer and used to create the message content to pass to connectors when sending or receiving messages.

See Also:
Serialized Form

Constructor Summary
MSIByteBuffer()
          Constructs the MSIByteBuffer object.
 
Method Summary
 void addPart(ContentPart part)
          Adds a new content part to the message.
 boolean checkBytes(byte[] arg1)
          Checks the bytes.
 int countParts()
          Returns the number of content parts in the message.
 byte[] getBytes()
          Returns the content of the message in byte format.
 ContentPart getPart(int index)
          Returns the content part based on the given index.
 void setBytes(byte[] arg1)
          Sets the bytes of the IByteBuffer.
 

Constructor Detail

MSIByteBuffer

public MSIByteBuffer()
Constructs the MSIByteBuffer object.
Method Detail

addPart

public void addPart(ContentPart part)
Adds a new content part to the message.
Parameters:
part - ContentPart The content part.

checkBytes

public boolean checkBytes(byte[] arg1)
Checks the bytes. A dummy method that will always return false.
Parameters:
arg1 - byte[] The byte array.
Returns:
boolean Always false.

countParts

public int countParts()
Returns the number of content parts in the message.
Returns:
int The number of content parts.

getBytes

public byte[] getBytes()
Returns the content of the message in byte format.
Returns:
byte[] The message.

getPart

public ContentPart getPart(int index)
Returns the content part based on the given index.
Parameters:
index - int The index of the content part to return.
Returns:
ContentPart The content part.

setBytes

public void setBytes(byte[] arg1)
Sets the bytes of the IByteBuffer.
Parameters:
arg1 - byte[] the byte array.