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 intranged(int n) booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()Deprecated.longreadLong()shortintintreadUTF()intskipBytes(int n) slice(int n) toString()static DataInputwrap(byte[] b) static DataInputwrap(byte[] b, int off, int len) static DataInputwrap(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:
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
Deprecated. -
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
toString
-