public class AmqpReadableBuffer extends Object implements org.apache.qpid.proton.codec.ReadableBuffer
| Constructor and Description |
|---|
AmqpReadableBuffer(ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
int |
arrayOffset() |
ByteBuffer |
byteBuffer() |
int |
capacity() |
org.apache.qpid.proton.codec.ReadableBuffer |
clear() |
org.apache.qpid.proton.codec.ReadableBuffer |
duplicate() |
org.apache.qpid.proton.codec.ReadableBuffer |
flip() |
void |
freeDirectBuffer() |
byte |
get() |
org.apache.qpid.proton.codec.ReadableBuffer |
get(byte[] target) |
org.apache.qpid.proton.codec.ReadableBuffer |
get(byte[] target,
int offset,
int length) |
byte |
get(int index) |
org.apache.qpid.proton.codec.ReadableBuffer |
get(org.apache.qpid.proton.codec.WritableBuffer target) |
ByteBuffer |
getBuffer() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
short |
getShort() |
boolean |
hasArray() |
boolean |
hasRemaining() |
int |
limit() |
org.apache.qpid.proton.codec.ReadableBuffer |
limit(int limit) |
org.apache.qpid.proton.codec.ReadableBuffer |
mark() |
int |
position() |
org.apache.qpid.proton.codec.ReadableBuffer |
position(int position) |
String |
readString(CharsetDecoder decoder) |
String |
readUTF8() |
org.apache.qpid.proton.codec.ReadableBuffer |
reclaimRead() |
int |
remaining() |
org.apache.qpid.proton.codec.ReadableBuffer |
reset() |
org.apache.qpid.proton.codec.ReadableBuffer |
rewind() |
org.apache.qpid.proton.codec.ReadableBuffer |
slice() |
public AmqpReadableBuffer(ByteBuffer buffer)
public ByteBuffer getBuffer()
public int capacity()
capacity in interface org.apache.qpid.proton.codec.ReadableBufferpublic boolean hasArray()
hasArray in interface org.apache.qpid.proton.codec.ReadableBufferpublic byte[] array()
array in interface org.apache.qpid.proton.codec.ReadableBufferpublic void freeDirectBuffer()
public int arrayOffset()
arrayOffset in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer reclaimRead()
reclaimRead in interface org.apache.qpid.proton.codec.ReadableBufferpublic byte get()
get in interface org.apache.qpid.proton.codec.ReadableBufferpublic byte get(int index)
get in interface org.apache.qpid.proton.codec.ReadableBufferpublic int getInt()
getInt in interface org.apache.qpid.proton.codec.ReadableBufferpublic long getLong()
getLong in interface org.apache.qpid.proton.codec.ReadableBufferpublic short getShort()
getShort in interface org.apache.qpid.proton.codec.ReadableBufferpublic float getFloat()
getFloat in interface org.apache.qpid.proton.codec.ReadableBufferpublic double getDouble()
getDouble in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer get(byte[] target,
int offset,
int length)
get in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer get(byte[] target)
get in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer get(org.apache.qpid.proton.codec.WritableBuffer target)
get in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer slice()
slice in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer flip()
flip in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer limit(int limit)
limit in interface org.apache.qpid.proton.codec.ReadableBufferpublic int limit()
limit in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer position(int position)
position in interface org.apache.qpid.proton.codec.ReadableBufferpublic int position()
position in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer mark()
mark in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer reset()
reset in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer rewind()
rewind in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer clear()
clear in interface org.apache.qpid.proton.codec.ReadableBufferpublic int remaining()
remaining in interface org.apache.qpid.proton.codec.ReadableBufferpublic boolean hasRemaining()
hasRemaining in interface org.apache.qpid.proton.codec.ReadableBufferpublic org.apache.qpid.proton.codec.ReadableBuffer duplicate()
duplicate in interface org.apache.qpid.proton.codec.ReadableBufferpublic ByteBuffer byteBuffer()
byteBuffer in interface org.apache.qpid.proton.codec.ReadableBufferpublic String readUTF8() throws CharacterCodingException
readUTF8 in interface org.apache.qpid.proton.codec.ReadableBufferCharacterCodingExceptionpublic String readString(CharsetDecoder decoder) throws CharacterCodingException
readString in interface org.apache.qpid.proton.codec.ReadableBufferCharacterCodingExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.