public class MCInputStream
extends java.io.DataInputStream
| Constructor and Description |
|---|
MCInputStream(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
readClassicString()
Read a classic string from the stream.
|
java.lang.String |
readLegacyString()
Read a legacy string from the stream.
|
int |
readVarInt()
Read a var int from the stream.
|
java.lang.String |
readVarString(int maxLength)
Read a var string from the stream.
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytespublic int readVarInt()
throws java.io.IOException
java.io.IOException - If an I/O error occurspublic java.lang.String readVarString(int maxLength)
throws java.io.IOException
maxLength - The maximum length of the stringjava.io.IOException - If an I/O error occurspublic java.lang.String readLegacyString()
throws java.io.IOException
java.io.IOException - If an I/O error occurspublic java.lang.String readClassicString()
throws java.io.IOException
java.io.IOException - If an I/O error occurs