Package us.donut.mmc
Class Client.ClientInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- us.donut.mmc.Client.ClientInputStream
-
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
- Direct Known Subclasses:
InboundPacket
- Enclosing class:
- Client
public static class Client.ClientInputStream extends DataInputStream
Data from a server.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ClientInputStream(InputStream is)Constructs a new ClientInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadString()UUIDreadUUID()intreadVarInt()longreadVarLong()-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ClientInputStream
public ClientInputStream(InputStream is)
Constructs a new ClientInputStream.- Parameters:
is- the InputStream from which to read
-
-
Method Detail
-
readVarInt
public int readVarInt() throws IOException- Throws:
IOException
-
readVarLong
public long readVarLong() throws IOException- Throws:
IOException
-
readString
public String readString() throws IOException
- Throws:
IOException
-
readUUID
public UUID readUUID() throws IOException
- Throws:
IOException
-
-