public class ByteBufferDataInput
extends java.lang.Object
implements java.io.DataInput
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
bb |
Modifier | Constructor and Description |
---|---|
private |
ByteBufferDataInput(java.nio.ByteBuffer bb) |
Modifier and Type | Method and Description |
---|---|
private int |
ranged(int n) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
int |
skipBytes(int n) |
java.nio.ByteBuffer |
slice(int n) |
static java.io.DataInput |
wrap(byte[] b) |
static java.io.DataInput |
wrap(byte[] b,
int off,
int len) |
static java.io.DataInput |
wrap(java.nio.ByteBuffer bb) |
public static java.io.DataInput wrap(java.nio.ByteBuffer bb)
public static java.io.DataInput wrap(byte[] b)
public static java.io.DataInput wrap(byte[] b, int off, int len)
private int ranged(int n)
public java.nio.ByteBuffer slice(int n)
public void readFully(byte[] b)
readFully
in interface java.io.DataInput
public void readFully(byte[] b, int off, int len)
readFully
in interface java.io.DataInput
public int skipBytes(int n)
skipBytes
in interface java.io.DataInput
public boolean readBoolean()
readBoolean
in interface java.io.DataInput
public byte readByte()
readByte
in interface java.io.DataInput
public int readUnsignedByte()
readUnsignedByte
in interface java.io.DataInput
public short readShort()
readShort
in interface java.io.DataInput
public int readUnsignedShort()
readUnsignedShort
in interface java.io.DataInput
public char readChar()
readChar
in interface java.io.DataInput
public int readInt()
readInt
in interface java.io.DataInput
public long readLong()
readLong
in interface java.io.DataInput
public float readFloat()
readFloat
in interface java.io.DataInput
public double readDouble()
readDouble
in interface java.io.DataInput
public java.lang.String readLine()
readLine
in interface java.io.DataInput
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException