org.apache.qpid.framing
Class AMQDataBlock

java.lang.Object
  extended by org.apache.qpid.framing.AMQDataBlock
All Implemented Interfaces:
EncodableAMQDataBlock
Direct Known Subclasses:
AMQFrame, CompositeAMQDataBlock, ProtocolInitiation

public abstract class AMQDataBlock
extends java.lang.Object
implements EncodableAMQDataBlock

A data block represents something that has a size in bytes and the ability to write itself to a byte buffer (similar to a byte array).


Constructor Summary
AMQDataBlock()
           
 
Method Summary
abstract  long getSize()
          Get the size of buffer needed to store the byte representation of this frame.
abstract  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, toString, wait, wait, wait
 

Constructor Detail

AMQDataBlock

public AMQDataBlock()
Method Detail

getSize

public abstract long getSize()
Get the size of buffer needed to store the byte representation of this frame.

Returns:
unsigned integer

writePayload

public abstract void writePayload(org.apache.mina.common.ByteBuffer buffer)
Writes the datablock to the specified buffer.

Parameters:
buffer -