|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.bytebuffer.ByteBufferArrayWriteable2
public class ByteBufferArrayWriteable2
Sends events when chunks are complete
| Nested Class Summary | |
|---|---|
static interface |
ByteBufferArrayWriteable2.ChunkListener
|
| Constructor Summary | |
|---|---|
ByteBufferArrayWriteable2(ByteBuffer[] bufs,
ByteBufferArrayWriteable2.ChunkListener listener)
Constructor for ByteBufferArrayWriteable2. |
|
| Method Summary | |
|---|---|
protected void |
fireChunkComplete(int index)
fireChunkComplete. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBufferArrayWriteable2(ByteBuffer[] bufs,
ByteBufferArrayWriteable2.ChunkListener listener)
Constructor for ByteBufferArrayWriteable2.
bufs - an array of ByteBuffer objects.listener - a ByteBufferArrayWriteable2.ChunkListener object.| Method Detail |
|---|
protected void fireChunkComplete(int index)
fireChunkComplete.
index - a int.public 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(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 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(byte[] src)
throws IOException
put.
put in interface IBinaryWriteablesrc - an array of byte.
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.public void flush()
flush.
flush in interface IBinaryWriteable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||