Package arc.util.io
Class ByteBufferInput
java.lang.Object
arc.util.io.ByteBufferInput
- All Implemented Interfaces:
DataInput
DataInput wrapper of ByteBuffer.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionsetBuffer(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:
readBooleanin interfaceDataInput
-
readByte
public byte readByte() -
readUnsignedByte
public int readUnsignedByte()- Specified by:
readUnsignedBytein interfaceDataInput
-
readShort
public short readShort() -
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShortin interfaceDataInput
-
readChar
public char readChar() -
readInt
public int readInt() -
readLong
public long readLong() -
readFloat
public float readFloat() -
readDouble
public double readDouble()- Specified by:
readDoublein interfaceDataInput
-
readLine
-
readUTF
-