Class AmqpWritableBuffer
- java.lang.Object
-
- org.apache.activemq.transport.amqp.message.AmqpWritableBuffer
-
- All Implemented Interfaces:
org.apache.qpid.proton.codec.WritableBuffer
public class AmqpWritableBuffer extends Object implements org.apache.qpid.proton.codec.WritableBuffer
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CAPACITY
-
Constructor Summary
Constructors Constructor Description AmqpWritableBuffer()
Creates a new WritableBuffer with default capacity.AmqpWritableBuffer(int capacity)
Create a new WritableBuffer with the given capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getArray()
int
getArrayLength()
boolean
hasRemaining()
int
limit()
int
position()
void
position(int position)
void
put(byte b)
void
put(byte[] src, int offset, int length)
void
put(ByteBuffer payload)
void
put(org.apache.qpid.proton.codec.ReadableBuffer src)
void
putDouble(double value)
void
putFloat(float value)
void
putInt(int value)
void
putLong(long value)
void
putShort(short value)
int
remaining()
-
-
-
Field Detail
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArray
public byte[] getArray()
-
getArrayLength
public int getArrayLength()
-
put
public void put(byte b)
- Specified by:
put
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putShort
public void putShort(short value)
- Specified by:
putShort
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putInt
public void putInt(int value)
- Specified by:
putInt
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putLong
public void putLong(long value)
- Specified by:
putLong
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putFloat
public void putFloat(float value)
- Specified by:
putFloat
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putDouble
public void putDouble(double value)
- Specified by:
putDouble
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(byte[] src, int offset, int length)
- Specified by:
put
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
hasRemaining
public boolean hasRemaining()
- Specified by:
hasRemaining
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
remaining
public int remaining()
- Specified by:
remaining
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
position
public int position()
- Specified by:
position
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
position
public void position(int position)
- Specified by:
position
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(ByteBuffer payload)
- Specified by:
put
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
limit
public int limit()
- Specified by:
limit
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(org.apache.qpid.proton.codec.ReadableBuffer src)
- Specified by:
put
in interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
-