org.apache.qpid.framing
Class SmallCompositeAMQDataBlock
java.lang.Object
org.apache.qpid.framing.AMQDataBlock
org.apache.qpid.framing.SmallCompositeAMQDataBlock
- All Implemented Interfaces:
- EncodableAMQDataBlock
public class SmallCompositeAMQDataBlock
- extends AMQDataBlock
- implements EncodableAMQDataBlock
SmallCompositeAMQDataBlock
public SmallCompositeAMQDataBlock(AMQDataBlock block)
SmallCompositeAMQDataBlock
public SmallCompositeAMQDataBlock(AMQDataBlock encodedBlock,
AMQDataBlock block)
- The encoded block will be logically first before the AMQDataBlocks which are encoded
into the buffer afterwards.
- Parameters:
encodedBlock
- already-encoded datablock
- a block to be encoded.
getBlock
public AMQDataBlock getBlock()
getFirstFrame
public AMQDataBlock getFirstFrame()
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 String toString()
- Overrides:
toString
in class Object
Licensed to the Apache Software Foundation