Class NetStreamInput
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.github.retrooper.packetevents.protocol.stream.NetStreamInput
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
readByte()
int
readBytes
(byte[] b) int
readBytes
(byte[] b, int offset, int length) byte[]
readBytes
(int length) char
readChar()
double
float
int
readInt()
int[]
readInts
(int length) int
readInts
(int[] i) int
readInts
(int[] i, int offset, int length) long
readLong()
long[]
readLongs
(int length) int
readLongs
(long[] l) int
readLongs
(long[] l, int offset, int length) short
short[]
readShorts
(int length) int
readShorts
(short[] s) int
readShorts
(short[] s, int offset, int length) int
int
readUUID()
int
long
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
NetStreamInput
Creates a new StreamNetInput instance.- Parameters:
in
- InputStream to read from.
-
-
Method Details
-
readBoolean
public boolean readBoolean() -
readByte
public byte readByte() -
readUnsignedByte
public int readUnsignedByte() -
readShort
public short readShort() -
readUnsignedShort
public int readUnsignedShort() -
readChar
public char readChar() -
readInt
public int readInt() -
readVarInt
public int readVarInt() -
readLong
public long readLong() -
readVarLong
public long readVarLong() -
readFloat
public float readFloat() -
readDouble
public double readDouble() -
readBytes
public byte[] readBytes(int length) -
readBytes
public int readBytes(byte[] b) -
readBytes
public int readBytes(byte[] b, int offset, int length) -
readShorts
public short[] readShorts(int length) -
readShorts
public int readShorts(short[] s) -
readShorts
public int readShorts(short[] s, int offset, int length) -
readInts
public int[] readInts(int length) -
readInts
public int readInts(int[] i) -
readInts
public int readInts(int[] i, int offset, int length) -
readLongs
public long[] readLongs(int length) -
readLongs
public int readLongs(long[] l) -
readLongs
public int readLongs(long[] l, int offset, int length) -
readString
-
readUUID
-