public class AmqpWritableBuffer extends Object implements org.apache.qpid.proton.codec.WritableBuffer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CAPACITY |
Constructor and Description |
---|
AmqpWritableBuffer()
Creates a new WritableBuffer with default capacity.
|
AmqpWritableBuffer(int capacity)
Create a new WritableBuffer with the given capacity.
|
Modifier and Type | Method and 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() |
public static final int DEFAULT_CAPACITY
public AmqpWritableBuffer()
public AmqpWritableBuffer(int capacity)
public byte[] getArray()
public int getArrayLength()
public void put(byte b)
put
in interface org.apache.qpid.proton.codec.WritableBuffer
public void putShort(short value)
putShort
in interface org.apache.qpid.proton.codec.WritableBuffer
public void putInt(int value)
putInt
in interface org.apache.qpid.proton.codec.WritableBuffer
public void putLong(long value)
putLong
in interface org.apache.qpid.proton.codec.WritableBuffer
public void putFloat(float value)
putFloat
in interface org.apache.qpid.proton.codec.WritableBuffer
public void putDouble(double value)
putDouble
in interface org.apache.qpid.proton.codec.WritableBuffer
public void put(byte[] src, int offset, int length)
put
in interface org.apache.qpid.proton.codec.WritableBuffer
public boolean hasRemaining()
hasRemaining
in interface org.apache.qpid.proton.codec.WritableBuffer
public int remaining()
remaining
in interface org.apache.qpid.proton.codec.WritableBuffer
public int position()
position
in interface org.apache.qpid.proton.codec.WritableBuffer
public void position(int position)
position
in interface org.apache.qpid.proton.codec.WritableBuffer
public void put(ByteBuffer payload)
put
in interface org.apache.qpid.proton.codec.WritableBuffer
public int limit()
limit
in interface org.apache.qpid.proton.codec.WritableBuffer
public void put(org.apache.qpid.proton.codec.ReadableBuffer src)
put
in interface org.apache.qpid.proton.codec.WritableBuffer
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.