public static class WritableBuffer.ByteBufferWrapper extends Object implements WritableBuffer
WritableBuffer.ByteBufferWrapper| Constructor and Description |
|---|
ByteBufferWrapper(ByteBuffer buf) |
| Modifier and Type | Method and Description |
|---|---|
static WritableBuffer.ByteBufferWrapper |
allocate(int size) |
ByteBuffer |
byteBuffer() |
void |
ensureRemaining(int remaining) |
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 src) |
void |
put(ReadableBuffer src) |
void |
put(String value) |
void |
putDouble(double d) |
void |
putFloat(float f) |
void |
putInt(int i) |
void |
putLong(long l) |
void |
putShort(short s) |
int |
remaining() |
ReadableBuffer |
toReadableBuffer() |
String |
toString() |
static WritableBuffer.ByteBufferWrapper |
wrap(byte[] bytes) |
static WritableBuffer.ByteBufferWrapper |
wrap(ByteBuffer buffer) |
public ByteBufferWrapper(ByteBuffer buf)
public void put(byte b)
put in interface WritableBufferpublic void putFloat(float f)
putFloat in interface WritableBufferpublic void putDouble(double d)
putDouble in interface WritableBufferpublic void put(byte[] src,
int offset,
int length)
put in interface WritableBufferpublic void putShort(short s)
putShort in interface WritableBufferpublic void putInt(int i)
putInt in interface WritableBufferpublic void putLong(long l)
putLong in interface WritableBufferpublic boolean hasRemaining()
hasRemaining in interface WritableBufferpublic void ensureRemaining(int remaining)
ensureRemaining in interface WritableBufferpublic int remaining()
remaining in interface WritableBufferpublic int position()
position in interface WritableBufferpublic void position(int position)
position in interface WritableBufferpublic void put(ByteBuffer src)
put in interface WritableBufferpublic void put(ReadableBuffer src)
put in interface WritableBufferpublic void put(String value)
put in interface WritableBufferpublic int limit()
limit in interface WritableBufferpublic ByteBuffer byteBuffer()
public ReadableBuffer toReadableBuffer()
public static WritableBuffer.ByteBufferWrapper allocate(int size)
public static WritableBuffer.ByteBufferWrapper wrap(ByteBuffer buffer)
public static WritableBuffer.ByteBufferWrapper wrap(byte[] bytes)
Copyright © 2020 The Apache Software Foundation. All rights reserved.