Package aQute.lib.io
Class ByteBufferDataInput
java.lang.Object
aQute.lib.io.ByteBufferDataInput
- All Implemented Interfaces:
DataInput
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
ranged
(int n) boolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
Deprecated.long
readLong()
short
int
int
readUTF()
int
skipBytes
(int n) slice
(int n) toString()
static DataInput
wrap
(byte[] b) static DataInput
wrap
(byte[] b, int off, int len) static DataInput
wrap
(ByteBuffer bb)
-
Field Details
-
bb
-
-
Constructor Details
-
ByteBufferDataInput
-
-
Method Details
-
wrap
-
wrap
-
wrap
-
ranged
private int ranged(int n) -
slice
-
readFully
public void readFully(byte[] b) -
readFully
public void readFully(byte[] b, int off, int len) -
skipBytes
public int skipBytes(int n) -
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
Deprecated. -
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
toString
-