org.apache.qpid.framing
Class AMQDataBlock
java.lang.Object
org.apache.qpid.framing.AMQDataBlock
- All Implemented Interfaces:
- EncodableAMQDataBlock
- Direct Known Subclasses:
- AMQFrame, CompositeAMQDataBlock, DeferredDataBlock, ProtocolInitiation, SmallCompositeAMQDataBlock
public abstract class AMQDataBlock
- extends 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).
Method Summary |
abstract long |
getSize()
Get the size of buffer needed to store the byte representation of this
frame. |
org.apache.mina.common.ByteBuffer |
toByteBuffer()
|
ByteBuffer |
toNioByteBuffer()
|
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 |
AMQDataBlock
public AMQDataBlock()
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
-
toByteBuffer
public org.apache.mina.common.ByteBuffer toByteBuffer()
toNioByteBuffer
public ByteBuffer toNioByteBuffer()
Licensed to the Apache Software Foundation