com.ibm.commerce.messaging.outboundservice
Class MSIByteBuffer

java.lang.Object
  |
  +--com.ibm.commerce.messaging.outboundservice.MSIByteBuffer
All Implemented Interfaces:
java.io.Serializable

public class MSIByteBuffer
extends java.lang.Object
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.
 java.lang.String getContentType()
           
 ContentPart getPart(int index)
          Returns the content part based on the given index.
 void setBytes(byte[] arg1)
          Sets the bytes of the IByteBuffer.
 void setContentType(java.lang.String content_type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSIByteBuffer

public MSIByteBuffer()
Constructs the MSIByteBuffer object.
Method Detail

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String content_type)

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.