org.apache.qpid.framing
Class CompositeAMQDataBlock

java.lang.Object
  extended by org.apache.qpid.framing.AMQDataBlock
      extended by org.apache.qpid.framing.CompositeAMQDataBlock
All Implemented Interfaces:
EncodableAMQDataBlock

public class CompositeAMQDataBlock
extends AMQDataBlock
implements EncodableAMQDataBlock


Constructor Summary
CompositeAMQDataBlock(AMQDataBlock[] blocks)
           
CompositeAMQDataBlock(org.apache.mina.common.ByteBuffer encodedBlock, AMQDataBlock[] blocks)
          The encoded block will be logically first before the AMQDataBlocks which are encoded into the buffer afterwards.
 
Method Summary
 AMQDataBlock[] getBlocks()
           
 org.apache.mina.common.ByteBuffer getEncodedBlock()
           
 long getSize()
          Get the size of buffer needed to store the byte representation of this frame.
 java.lang.String toString()
           
 void writePayload(org.apache.mina.common.ByteBuffer buffer)
          Writes the datablock to the specified buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeAMQDataBlock

public CompositeAMQDataBlock(AMQDataBlock[] blocks)

CompositeAMQDataBlock

public CompositeAMQDataBlock(org.apache.mina.common.ByteBuffer encodedBlock,
                             AMQDataBlock[] blocks)
The encoded block will be logically first before the AMQDataBlocks which are encoded into the buffer afterwards.

Parameters:
encodedBlock - already-encoded data
blocks - some blocks to be encoded.
Method Detail

getBlocks

public AMQDataBlock[] getBlocks()

getEncodedBlock

public org.apache.mina.common.ByteBuffer getEncodedBlock()

getSize

public long getSize()
Description copied from class: AMQDataBlock
Get the size of buffer needed to store the byte representation of this frame.

Specified by:
getSize in class AMQDataBlock
Returns:
unsigned integer

writePayload

public void writePayload(org.apache.mina.common.ByteBuffer buffer)
Description copied from class: AMQDataBlock
Writes the datablock to the specified buffer.

Specified by:
writePayload in class AMQDataBlock

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object