Package arc.util.io
Class ByteBufferInput
java.lang.Object
arc.util.io.ByteBufferInput
- All Implemented Interfaces:
DataInput
DataInput wrapper of ByteBuffer.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionsetBuffer(java.nio.ByteBuffer)
must be called before this object can be used.ByteBufferInput
(ByteBuffer buffer) Wraps the specified ByteBuffer. -
Method Summary
-
Field Details
-
buffer
-
-
Constructor Details
-
ByteBufferInput
Wraps the specified ByteBuffer. -
ByteBufferInput
public ByteBufferInput()setBuffer(java.nio.ByteBuffer)
must be called before this object can be used.
-
-
Method Details
-
setBuffer
-
readFully
public void readFully(byte[] bytes) -
readFully
public void readFully(byte[] bytes, int f, int to) -
skipBytes
public int skipBytes(int i) -
readBoolean
public boolean readBoolean()- Specified by:
readBoolean
in interfaceDataInput
-
readByte
public byte readByte() -
readUnsignedByte
public int readUnsignedByte()- Specified by:
readUnsignedByte
in interfaceDataInput
-
readShort
public short readShort() -
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShort
in interfaceDataInput
-
readChar
public char readChar() -
readInt
public int readInt() -
readLong
public long readLong() -
readFloat
public float readFloat() -
readDouble
public double readDouble()- Specified by:
readDouble
in interfaceDataInput
-
readLine
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-