public abstract class ByteBufferWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
mBuf |
Modifier and Type | Method and Description |
---|---|
abstract ByteBuffer |
getByteBuffer() |
static ByteBufferWriter |
getByteBufferWriter(ByteBuffer buf)
Get most efficient ByteBufferWriter for the ByteBuffer.
|
ByteOrder |
order() |
abstract void |
put(Byte b)
Writes the given byte into this buffer at the current position, and then increments the
position.
|
void |
put(byte[] src)
This method transfers the entire content of the given source byte array into this buffer.
|
abstract void |
put(byte[] src,
int offset,
int length) |
abstract void |
putChar(char value) |
abstract void |
putDouble(double value) |
abstract void |
putFloat(float value) |
abstract void |
putInt(int value) |
abstract void |
putLong(long value) |
abstract void |
putShort(short value) |
protected ByteBuffer mBuf
public static ByteBufferWriter getByteBufferWriter(ByteBuffer buf) throws IOException
buf
- the ByteBuffer to write.IOException
public abstract void put(Byte b)
b
- The byte to be writtenpublic final void put(byte[] src)
dst.put(a, 0, a.length)
src
- public abstract void put(byte[] src, int offset, int length)
public abstract void putChar(char value)
public abstract void putDouble(double value)
public abstract void putFloat(float value)
public abstract void putInt(int value)
public abstract void putLong(long value)
public abstract void putShort(short value)
public ByteOrder order()
public abstract ByteBuffer getByteBuffer()
Copyright © 2014. All rights reserved.