Package pro.gravit.launcher.serialize
Class HInput
java.lang.Object
pro.gravit.launcher.serialize.HInput
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()readASCII(int maxBytes)readBigInteger(int maxBytes)booleanbyte[]readByteArray(int max)intreadInt()intreadLength(int max)longreadLong()shortreadString(int maxBytes)intintreadUUID()intlong
-
Field Details
-
stream
-
-
Constructor Details
-
HInput
public HInput(byte[] bytes) -
HInput
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
readASCII
- Throws:
IOException
-
readBigInteger
- Throws:
IOException
-
readBoolean
- Throws:
IOException
-
readByteArray
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLength
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readString
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
readUnsignedShort
- Throws:
IOException
-
readUUID
- Throws:
IOException
-
readVarInt
- Throws:
IOException
-
readVarLong
- Throws:
IOException
-