| Constructor and Description |
|---|
ByteBufNetInput(io.netty.buffer.ByteBuf buf) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Gets the number of available bytes.
|
boolean |
readBoolean()
Reads the next boolean.
|
byte |
readByte()
Reads the next byte.
|
int |
readBytes(byte[] b)
Reads as much data as possible into the given byte array.
|
int |
readBytes(byte[] b,
int offset,
int length)
Reads the given amount of bytes into the given array at the given offset.
|
byte[] |
readBytes(int length)
Reads the next byte array.
|
char |
readChar()
Reads the next char.
|
double |
readDouble()
Reads the next double.
|
float |
readFloat()
Reads the next float.
|
int |
readInt()
Reads the next integer.
|
int[] |
readInts(int length)
Reads the next int array.
|
int |
readInts(int[] i)
Reads as much data as possible into the given int array.
|
int |
readInts(int[] i,
int offset,
int length)
Reads the given amount of ints into the given array at the given offset.
|
long |
readLong()
Reads the next long.
|
long[] |
readLongs(int length)
Reads the next long array.
|
int |
readLongs(long[] l)
Reads as much data as possible into the given long array.
|
int |
readLongs(long[] l,
int offset,
int length)
Reads the given amount of longs into the given array at the given offset.
|
short |
readShort()
Reads the next short.
|
short[] |
readShorts(int length)
Reads the next short array.
|
int |
readShorts(short[] s)
Reads as much data as possible into the given short array.
|
int |
readShorts(short[] s,
int offset,
int length)
Reads the given amount of shorts into the given array at the given offset.
|
String |
readString()
Reads the next string.
|
int |
readUnsignedByte()
Reads the next unsigned byte.
|
int |
readUnsignedShort()
Reads the next unsigned short.
|
UUID |
readUUID()
Reads the next UUID.
|
int |
readVarInt()
Reads the next varint.
|
long |
readVarLong()
Reads the next varlong.
|
public boolean readBoolean()
throws IOException
NetInputreadBoolean in interface NetInputIOException - If an I/O error occurs.public byte readByte()
throws IOException
NetInputreadByte in interface NetInputIOException - If an I/O error occurs.public int readUnsignedByte()
throws IOException
NetInputreadUnsignedByte in interface NetInputIOException - If an I/O error occurs.public short readShort()
throws IOException
NetInputreadShort in interface NetInputIOException - If an I/O error occurs.public int readUnsignedShort()
throws IOException
NetInputreadUnsignedShort in interface NetInputIOException - If an I/O error occurs.public char readChar()
throws IOException
NetInputreadChar in interface NetInputIOException - If an I/O error occurs.public int readInt()
throws IOException
NetInputreadInt in interface NetInputIOException - If an I/O error occurs.public int readVarInt()
throws IOException
NetInputreadVarInt in interface NetInputIOException - If an I/O error occurs.public long readLong()
throws IOException
NetInputreadLong in interface NetInputIOException - If an I/O error occurs.public long readVarLong()
throws IOException
NetInputreadVarLong in interface NetInputIOException - If an I/O error occurs.public float readFloat()
throws IOException
NetInputreadFloat in interface NetInputIOException - If an I/O error occurs.public double readDouble()
throws IOException
NetInputreadDouble in interface NetInputIOException - If an I/O error occurs.public byte[] readBytes(int length)
throws IOException
NetInputreadBytes in interface NetInputlength - The length of the byte array.IOException - If an I/O error occurs.public int readBytes(byte[] b)
throws IOException
NetInputreadBytes in interface NetInputb - Byte array to read to.IOException - If an I/O error occurs.public int readBytes(byte[] b,
int offset,
int length)
throws IOException
NetInputreadBytes in interface NetInputb - Byte array to read to.offset - Offset of the array to read to.length - Length of bytes to read.IOException - If an I/O error occurs.public short[] readShorts(int length)
throws IOException
NetInputreadShorts in interface NetInputlength - The length of the short array.IOException - If an I/O error occurs.public int readShorts(short[] s)
throws IOException
NetInputreadShorts in interface NetInputs - Short array to read to.IOException - If an I/O error occurs.public int readShorts(short[] s,
int offset,
int length)
throws IOException
NetInputreadShorts in interface NetInputs - Short array to read to.offset - Offset of the array to read to.length - Length of bytes to read.IOException - If an I/O error occurs.public int[] readInts(int length)
throws IOException
NetInputreadInts in interface NetInputlength - The length of the int array.IOException - If an I/O error occurs.public int readInts(int[] i)
throws IOException
NetInputreadInts in interface NetInputi - Int array to read to.IOException - If an I/O error occurs.public int readInts(int[] i,
int offset,
int length)
throws IOException
NetInputreadInts in interface NetInputi - Int array to read to.offset - Offset of the array to read to.length - Length of bytes to read.IOException - If an I/O error occurs.public long[] readLongs(int length)
throws IOException
NetInputreadLongs in interface NetInputlength - The length of the long array.IOException - If an I/O error occurs.public int readLongs(long[] l)
throws IOException
NetInputreadLongs in interface NetInputl - Long array to read to.IOException - If an I/O error occurs.public int readLongs(long[] l,
int offset,
int length)
throws IOException
NetInputreadLongs in interface NetInputl - Long array to read to.offset - Offset of the array to read to.length - Length of bytes to read.IOException - If an I/O error occurs.public String readString() throws IOException
NetInputreadString in interface NetInputIOException - If an I/O error occurs.public UUID readUUID() throws IOException
NetInputreadUUID in interface NetInputIOException - If an I/O error occurs.public int available()
throws IOException
NetInputavailable in interface NetInputIOException - If an I/O error occurs.Copyright © 2021. All rights reserved.