|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.bytebuffer.ByteBufferReadable
public class ByteBufferReadable
ByteBufferReadable class.
| Constructor Summary | |
|---|---|
ByteBufferReadable(byte[] buf)
Constructor for ByteBufferReadable. |
|
ByteBufferReadable(ByteBuffer buf)
Constructor for ByteBufferReadable. |
|
| Method Summary | |
|---|---|
byte |
get()
get. |
void |
get(byte[] dst)
get. |
void |
get(byte[] dst,
int offset,
int length)
get. |
void |
get(ByteBuffer buf)
Get buf fully |
void |
get(ByteBuffer buf,
int length)
Get fully length bytes |
double |
getDouble()
getDouble. |
float |
getFloat()
getFloat. |
int |
getInt()
getInt. |
long |
getLong()
getLong. |
short |
getShort()
getShort. |
long |
limit()
limit. |
ByteOrder |
order()
order. |
void |
order(ByteOrder order)
order. |
long |
position()
position. |
void |
position(int newPosition)
position. |
void |
position(long newPosition)
position. |
void |
skip(long bytes)
skip. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBufferReadable(ByteBuffer buf)
Constructor for ByteBufferReadable.
buf - a ByteBuffer object.public ByteBufferReadable(byte[] buf)
Constructor for ByteBufferReadable.
buf - an array of byte.| Method Detail |
|---|
public byte get()
get.
get in interface IBinaryReadable
public void get(byte[] dst,
int offset,
int length)
get.
get in interface IBinaryReadabledst - an array of byte.offset - a int.length - a int.public void get(byte[] dst)
get.
get in interface IBinaryReadabledst - an array of byte.public void get(ByteBuffer buf)
get in interface IBinaryReadablebuf - a ByteBuffer object.
public void get(ByteBuffer buf,
int length)
get in interface IBinaryReadablebuf - a ByteBuffer object.length - a int.public double getDouble()
getDouble.
getDouble in interface IBinaryReadablepublic float getFloat()
getFloat.
getFloat in interface IBinaryReadablepublic int getInt()
getInt.
getInt in interface IBinaryReadablepublic long getLong()
getLong.
getLong in interface IBinaryReadablepublic short getShort()
getShort.
getShort in interface IBinaryReadablepublic long limit()
limit.
limit in interface IBinaryReadablepublic long position()
position.
position in interface IBinaryReadablepublic ByteOrder order()
order.
order in interface IBinaryReadableByteOrder object.public void order(ByteOrder order)
order.
order in interface IBinaryReadableorder - a ByteOrder object.
public void position(int newPosition)
throws IOException
position.
newPosition - a int.
IOException - if any.
public void position(long newPosition)
throws IOException
position.
newPosition - a long.
IOException - if any.
public void skip(long bytes)
throws IOException
skip.
bytes - a long.
IOException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||