Package org.apache.qpid.proton.codec
Class WritableBuffer.ByteBufferWrapper
java.lang.Object
org.apache.qpid.proton.codec.WritableBuffer.ByteBufferWrapper
- All Implemented Interfaces:
WritableBuffer
- Enclosing interface:
- WritableBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.proton.codec.WritableBuffer
WritableBuffer.ByteBufferWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate(int size) voidensureRemaining(int remaining) booleanintlimit()intposition()voidposition(int position) voidput(byte b) voidput(byte[] src, int offset, int length) voidvoidput(ByteBuffer src) voidput(ReadableBuffer src) voidputDouble(double d) voidputFloat(float f) voidputInt(int i) voidputLong(long l) voidputShort(short s) inttoString()wrap(byte[] bytes) wrap(ByteBuffer buffer)
-
Constructor Details
-
ByteBufferWrapper
-
-
Method Details
-
put
public void put(byte b) - Specified by:
putin interfaceWritableBuffer
-
putFloat
public void putFloat(float f) - Specified by:
putFloatin interfaceWritableBuffer
-
putDouble
public void putDouble(double d) - Specified by:
putDoublein interfaceWritableBuffer
-
put
public void put(byte[] src, int offset, int length) - Specified by:
putin interfaceWritableBuffer
-
putShort
public void putShort(short s) - Specified by:
putShortin interfaceWritableBuffer
-
putInt
public void putInt(int i) - Specified by:
putIntin interfaceWritableBuffer
-
putLong
public void putLong(long l) - Specified by:
putLongin interfaceWritableBuffer
-
hasRemaining
public boolean hasRemaining()- Specified by:
hasRemainingin interfaceWritableBuffer
-
ensureRemaining
public void ensureRemaining(int remaining) - Specified by:
ensureRemainingin interfaceWritableBuffer
-
remaining
public int remaining()- Specified by:
remainingin interfaceWritableBuffer
-
position
public int position()- Specified by:
positionin interfaceWritableBuffer
-
position
public void position(int position) - Specified by:
positionin interfaceWritableBuffer
-
put
- Specified by:
putin interfaceWritableBuffer
-
put
- Specified by:
putin interfaceWritableBuffer
-
put
- Specified by:
putin interfaceWritableBuffer
-
limit
public int limit()- Specified by:
limitin interfaceWritableBuffer
-
byteBuffer
-
toReadableBuffer
-
toString
-
allocate
-
wrap
-
wrap
-