|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.bytebuffer.ByteBufferWriteable
public class ByteBufferWriteable
IWriteable implementation with ByteBuffer as backend
| Constructor Summary | |
|---|---|
ByteBufferWriteable(ByteBuffer buf)
Constructor for ByteBufferWriteable. |
|
| Method Summary | |
|---|---|
void |
flush()
flush. |
ByteOrder |
order()
order. |
void |
order(ByteOrder order)
order. |
long |
position()
position. |
void |
position(long newPosition)
position. |
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 ByteBufferWriteable(ByteBuffer buf)
Constructor for ByteBufferWriteable.
buf - a ByteBuffer object.| Method Detail |
|---|
public void put(byte b)
put.
put in interface IBinaryWriteableb - a byte.public void put(ByteBuffer src)
put in interface IBinaryWriteablesrc - a ByteBuffer object.
public void put(ByteBuffer src,
int length)
put in interface IBinaryWriteablesrc - a ByteBuffer object.length - a int.
public void put(byte[] src,
int offset,
int length)
put.
put in interface IBinaryWriteablesrc - an array of byte.offset - a int.length - a int.public void put(byte[] src)
put.
put in interface IBinaryWriteablesrc - an array of byte.public void putDouble(double value)
putDouble.
putDouble in interface IBinaryWriteablevalue - a double.public void putFloat(float value)
putFloat.
putFloat in interface IBinaryWriteablevalue - a float.public void putInt(int value)
putInt.
putInt in interface IBinaryWriteablevalue - a int.public void putLong(long value)
putLong.
putLong in interface IBinaryWriteablevalue - a long.public void putShort(short value)
putShort.
putShort in interface IBinaryWriteablevalue - a short.public ByteOrder order()
order.
order in interface IBinaryWriteableByteOrder object.public void order(ByteOrder order)
order.
order in interface IBinaryWriteableorder - a ByteOrder object.public void flush()
flush.
flush in interface IBinaryWriteable
public long position()
throws IOException
position.
IOException - if any.
public void position(long newPosition)
throws IOException
position.
newPosition - a long.
IOException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||