Package arc.util.io
Class ByteBufferOutput
java.lang.Object
arc.util.io.ByteBufferOutput
- All Implemented Interfaces:
DataOutput
DataOutput wrapper of ByteBuffer.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionbuffer must be set before this object can be used.ByteBufferOutput
(ByteBuffer buffer) Wraps the specified ByteBuffer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(byte[] bytes) void
write
(byte[] bytes, int off, int len) void
write
(int i) void
writeBoolean
(boolean b) void
writeByte
(int i) void
writeBytes
(String s) void
writeChar
(int i) void
writeChars
(String s) void
writeDouble
(double v) void
writeFloat
(float v) void
writeInt
(int i) void
writeLong
(long l) void
writeShort
(int i) void
-
Field Details
-
buffer
-
-
Constructor Details
-
ByteBufferOutput
Wraps the specified ByteBuffer. -
ByteBufferOutput
public ByteBufferOutput()buffer must be set before this object can be used.
-
-
Method Details
-
write
public void write(int i) - Specified by:
write
in interfaceDataOutput
-
write
public void write(byte[] bytes) - Specified by:
write
in interfaceDataOutput
-
write
public void write(byte[] bytes, int off, int len) - Specified by:
write
in interfaceDataOutput
-
writeBoolean
public void writeBoolean(boolean b) - Specified by:
writeBoolean
in interfaceDataOutput
-
writeByte
public void writeByte(int i) - Specified by:
writeByte
in interfaceDataOutput
-
writeShort
public void writeShort(int i) - Specified by:
writeShort
in interfaceDataOutput
-
writeChar
public void writeChar(int i) - Specified by:
writeChar
in interfaceDataOutput
-
writeInt
public void writeInt(int i) - Specified by:
writeInt
in interfaceDataOutput
-
writeLong
public void writeLong(long l) - Specified by:
writeLong
in interfaceDataOutput
-
writeFloat
public void writeFloat(float v) - Specified by:
writeFloat
in interfaceDataOutput
-
writeDouble
public void writeDouble(double v) - Specified by:
writeDouble
in interfaceDataOutput
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Throws:
IOException
-