|
|||||||||
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 |
long |
position()
|
void |
position(long newPosition)
|
void |
write(byte[] src)
|
void |
write(byte[] src,
int offset,
int length)
|
void |
write(int b)
|
void |
writeBoolean(boolean v)
|
void |
writeByte(int b)
|
void |
writeBytes(java.lang.String s)
|
void |
writeChar(int value)
|
void |
writeChars(java.lang.String s)
|
void |
writeDouble(double value)
|
void |
writeFloat(float value)
|
void |
writeFully(java.nio.ByteBuffer src)
Put n bytes from the remaining of the byte array. |
void |
writeFully(java.nio.ByteBuffer src,
int length)
Put n bytes from the remaining of the byte buffer. |
void |
writeInt(int value)
|
void |
writeLong(long value)
|
void |
writeShort(int value)
|
void |
writeUTF(java.lang.String s)
|
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 write(int b)
write
in interface java.io.DataOutput
public void writeByte(int b) throws java.io.IOException
writeByte
in interface java.io.DataOutput
java.io.IOException
public void writeBoolean(boolean v) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
java.io.IOException
public void writeFully(java.nio.ByteBuffer src)
BinaryWriteable
writeFully
in interface BinaryWriteable
public void writeFully(java.nio.ByteBuffer src, int length)
BinaryWriteable
writeFully
in interface BinaryWriteable
public void write(byte[] src, int offset, int length)
write
in interface java.io.DataOutput
public void write(byte[] src)
write
in interface java.io.DataOutput
public void writeDouble(double value)
writeDouble
in interface java.io.DataOutput
public void writeFloat(float value)
writeFloat
in interface java.io.DataOutput
public void writeInt(int value)
writeInt
in interface java.io.DataOutput
public void writeLong(long value)
writeLong
in interface java.io.DataOutput
public void writeShort(int value)
writeShort
in interface java.io.DataOutput
public void writeChar(int value)
writeChar
in interface java.io.DataOutput
public void writeBytes(java.lang.String s) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
java.io.IOException
public void writeChars(java.lang.String s) throws java.io.IOException
writeChars
in interface java.io.DataOutput
java.io.IOException
public void writeUTF(java.lang.String s) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
java.io.IOException
public void flush()
BinaryWriteable
flush
in interface BinaryWriteable
public long position() throws java.io.IOException
java.io.IOException
public void position(long newPosition) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |