|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.util.binary.ByteBufferWriteable
public class ByteBufferWriteable
IWriteable implementation with ByteBuffer as backend
Constructor Summary | |
---|---|
ByteBufferWriteable(java.nio.ByteBuffer buf)
|
Method Summary | |
---|---|
void |
flush()
Flush write buffer |
java.nio.ByteOrder |
order()
|
void |
order(java.nio.ByteOrder order)
|
long |
position()
Get position |
void |
position(long newPosition)
Seek new position. |
void |
put(byte b)
Write a byte |
void |
put(byte[] src)
|
void |
put(byte[] src,
int offset,
int length)
|
void |
put(java.nio.ByteBuffer src)
Put n bytes from the remaining of the byte array. |
void |
put(java.nio.ByteBuffer src,
int length)
Put n bytes from the remaining of the byte buffer. |
void |
putDouble(double value)
|
void |
putFloat(float value)
|
void |
putInt(int value)
|
void |
putLong(long value)
|
void |
putShort(short value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteBufferWriteable(java.nio.ByteBuffer buf)
Method Detail |
---|
public void put(byte b)
BinaryWriteable
put
in interface BinaryWriteable
public void put(java.nio.ByteBuffer src)
BinaryWriteable
put
in interface BinaryWriteable
public void put(java.nio.ByteBuffer src, int length)
BinaryWriteable
put
in interface BinaryWriteable
public void put(byte[] src, int offset, int length)
put
in interface BinaryWriteable
public void put(byte[] src)
put
in interface BinaryWriteable
public void putDouble(double value)
putDouble
in interface BinaryWriteable
public void putFloat(float value)
putFloat
in interface BinaryWriteable
public void putInt(int value)
putInt
in interface BinaryWriteable
public void putLong(long value)
putLong
in interface BinaryWriteable
public void putShort(short value)
putShort
in interface BinaryWriteable
public java.nio.ByteOrder order()
order
in interface BinaryWriteable
public void order(java.nio.ByteOrder order)
order
in interface BinaryWriteable
public void flush()
BinaryWriteable
flush
in interface BinaryWriteable
public long position() throws java.io.IOException
Seekable
position
in interface Seekable
java.io.IOException
public void position(long newPosition) throws java.io.IOException
Seekable
position
in interface Seekable
newPosition
- new position
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |