public class ByteBufferArrayWriteable2 extends Object implements IBinaryWriteable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ByteBufferArrayWriteable2.ChunkListener
Listener that fires when chunk is completed.
|
| Constructor and Description |
|---|
ByteBufferArrayWriteable2(ByteBuffer[] bufs,
ByteBufferArrayWriteable2.ChunkListener listener)
Creates new ByteBufferArrayWriteable2 with the given buffer(s) and listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireChunkComplete(int index)
fireChunkComplete.
|
void |
flush()
flush.
|
ByteOrder |
order()
order.
|
void |
order(ByteOrder order)
order.
|
void |
put(byte value)
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 ByteBufferArrayWriteable2(ByteBuffer[] bufs, ByteBufferArrayWriteable2.ChunkListener listener)
public void flush()
IBinaryWriteableflush.
flush in interface IBinaryWriteablepublic ByteOrder order()
IBinaryWriteableorder.
order in interface IBinaryWriteableByteOrder object.public void order(ByteOrder order)
IBinaryWriteableorder.
order in interface IBinaryWriteableorder - a ByteOrder object.public void put(byte value)
throws IOException
IBinaryWriteableput.
put in interface IBinaryWriteablevalue - a byte.IOException - if any.public void put(byte[] src)
throws IOException
IBinaryWriteableput.
put in interface IBinaryWriteablesrc - an array of byte.IOException - if any.public void put(byte[] src,
int offset,
int length)
throws IOException
IBinaryWriteableput.
put in interface IBinaryWriteablesrc - an array of byte.offset - a int.length - a int.IOException - if any.public void put(ByteBuffer src) throws IOException
IBinaryWriteableput in interface IBinaryWriteablesrc - a ByteBuffer object.IOException - if any.public void put(ByteBuffer src, int length) throws IOException
IBinaryWriteableput in interface IBinaryWriteablesrc - a ByteBuffer object.length - a int.IOException - if any.public void putDouble(double value)
throws IOException
IBinaryWriteableputDouble.
putDouble in interface IBinaryWriteablevalue - a double.IOException - if any.public void putFloat(float value)
throws IOException
IBinaryWriteableputFloat.
putFloat in interface IBinaryWriteablevalue - a float.IOException - if any.public void putInt(int value)
throws IOException
IBinaryWriteableputInt.
putInt in interface IBinaryWriteablevalue - a int.IOException - if any.public void putLong(long value)
throws IOException
IBinaryWriteableputLong.
putLong in interface IBinaryWriteablevalue - a long.IOException - if any.public void putShort(short value)
throws IOException
IBinaryWriteableputShort.
putShort in interface IBinaryWriteablevalue - a short.IOException - if any.protected void fireChunkComplete(int index)
fireChunkComplete.
index - a int.Copyright © 2026. All rights reserved.