|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.util.binary.ByteBufferReadable
public class ByteBufferReadable
Constructor Summary | |
---|---|
ByteBufferReadable(byte[] buf)
|
|
ByteBufferReadable(java.nio.ByteBuffer buf)
|
Method Summary | |
---|---|
byte |
get()
|
void |
get(byte[] dst)
|
void |
get(byte[] dst,
int offset,
int length)
|
void |
get(java.nio.ByteBuffer buf)
Get buf fully |
void |
get(java.nio.ByteBuffer buf,
int length)
Get fully length bytes |
double |
getDouble()
|
float |
getFloat()
|
int |
getInt()
|
long |
getLong()
|
short |
getShort()
|
long |
length()
|
java.nio.ByteOrder |
order()
|
void |
order(java.nio.ByteOrder order)
|
long |
position()
Get position |
void |
position(int newPosition)
|
void |
position(long newPosition)
Seek new position. |
void |
skip(long bytes)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteBufferReadable(java.nio.ByteBuffer buf)
public ByteBufferReadable(byte[] buf)
Method Detail |
---|
public byte get()
get
in interface BinaryReadable
public void get(byte[] dst, int offset, int length)
get
in interface BinaryReadable
public void get(byte[] dst)
get
in interface BinaryReadable
public void get(java.nio.ByteBuffer buf)
BinaryReadable
get
in interface BinaryReadable
public void get(java.nio.ByteBuffer buf, int length)
BinaryReadable
get
in interface BinaryReadable
public double getDouble()
getDouble
in interface BinaryReadable
public float getFloat()
getFloat
in interface BinaryReadable
public int getInt()
getInt
in interface BinaryReadable
public long getLong()
getLong
in interface BinaryReadable
public short getShort()
getShort
in interface BinaryReadable
public long length()
length
in interface BinaryReadable
public long position()
Seekable
position
in interface BinaryReadable
position
in interface Seekable
public java.nio.ByteOrder order()
order
in interface BinaryReadable
public void order(java.nio.ByteOrder order)
order
in interface BinaryReadable
public void position(int newPosition) throws java.io.IOException
java.io.IOException
public void position(long newPosition) throws java.io.IOException
Seekable
position
in interface Seekable
newPosition
- new position
java.io.IOException
public void skip(long bytes) throws java.io.IOException
skip
in interface BinaryReadable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |