public class ByteBufferArrayWriteable extends Object implements IBinaryWriteable
ByteBufferArrayWriteable class.
| Constructor and Description |
|---|
ByteBufferArrayWriteable(ByteBuffer[] bufs)
Constructor for ByteBufferArrayWriteable.
|
ByteBufferArrayWriteable(ByteQueue q)
Constructor for ByteBufferArrayWriteable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
flush.
|
ByteOrder |
order()
order.
|
void |
order(ByteOrder order)
order.
|
void |
put(byte b)
put.
|
void |
put(byte[] src)
put.
|
void |
put(byte[] src,
int offset,
int length)
put.
|
void |
put(ByteBuffer src)
Put n bytes from the remaining of the byte array.
|
void |
put(ByteBuffer src,
int length)
Put n bytes from the remaining of the byte buffer.
|
void |
putDouble(double value)
putDouble.
|
void |
putFloat(float value)
putFloat.
|
void |
putInt(int value)
putInt.
|
void |
putLong(long value)
putLong.
|
void |
putShort(short value)
putShort.
|
public ByteBufferArrayWriteable(ByteBuffer[] bufs)
Constructor for ByteBufferArrayWriteable.
bufs - an array of ByteBuffer objects.public void flush()
flush.
flush in interface IBinaryWriteablepublic ByteOrder order()
order.
order in interface IBinaryWriteableByteOrder object.public void order(ByteOrder order)
order.
order in interface IBinaryWriteableorder - a ByteOrder object.public void put(byte b)
throws IOException
put.
put in interface IBinaryWriteableb - a byte.IOException - if any.public void put(byte[] src)
throws IOException
put.
put in interface IBinaryWriteablesrc - an array of byte.IOException - if any.public void put(byte[] src,
int offset,
int length)
throws IOException
put.
put in interface IBinaryWriteablesrc - an array of byte.offset - a int.length - a int.IOException - if any.public void put(ByteBuffer src) throws IOException
put in interface IBinaryWriteablesrc - a ByteBuffer object.IOException - if any.public void put(ByteBuffer src, int length) throws IOException
put in interface IBinaryWriteablesrc - a ByteBuffer object.length - a int.IOException - if any.public void putDouble(double value)
throws IOException
putDouble.
putDouble in interface IBinaryWriteablevalue - a double.IOException - if any.public void putFloat(float value)
throws IOException
putFloat.
putFloat in interface IBinaryWriteablevalue - a float.IOException - if any.public void putInt(int value)
throws IOException
putInt.
putInt in interface IBinaryWriteablevalue - a int.IOException - if any.public void putLong(long value)
throws IOException
putLong.
putLong in interface IBinaryWriteablevalue - a long.IOException - if any.public void putShort(short value)
throws IOException
putShort.
putShort in interface IBinaryWriteablevalue - a short.IOException - if any.Copyright © 2026. All rights reserved.