Package pro.gravit.launcher.serialize
Class HOutput
- java.lang.Object
-
- pro.gravit.launcher.serialize.HOutput
-
- All Implemented Interfaces:
java.io.Flushable,java.lang.AutoCloseable
public final class HOutput extends java.lang.Object implements java.lang.AutoCloseable, java.io.Flushable
-
-
Field Summary
Fields Modifier and Type Field Description java.io.OutputStreamstream
-
Constructor Summary
Constructors Constructor Description HOutput(java.io.OutputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwriteASCII(java.lang.String s, int maxBytes)voidwriteBigInteger(java.math.BigInteger bi, int max)voidwriteBoolean(boolean b)voidwriteByteArray(byte[] bytes, int max)voidwriteInt(int i)voidwriteLength(int length, int max)voidwriteLong(long l)voidwriteShort(short s)voidwriteString(java.lang.String s, int maxBytes)voidwriteUnsignedByte(int b)voidwriteUUID(java.util.UUID uuid)voidwriteVarInt(int i)voidwriteVarLong(long l)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Throws:
java.io.IOException
-
writeASCII
public void writeASCII(java.lang.String s, int maxBytes) throws java.io.IOException- Throws:
java.io.IOException
-
writeBigInteger
public void writeBigInteger(java.math.BigInteger bi, int max) throws java.io.IOException- Throws:
java.io.IOException
-
writeBoolean
public void writeBoolean(boolean b) throws java.io.IOException- Throws:
java.io.IOException
-
writeByteArray
public void writeByteArray(byte[] bytes, int max) throws java.io.IOException- Throws:
java.io.IOException
-
writeInt
public void writeInt(int i) throws java.io.IOException- Throws:
java.io.IOException
-
writeLength
public void writeLength(int length, int max) throws java.io.IOException- Throws:
java.io.IOException
-
writeLong
public void writeLong(long l) throws java.io.IOException- Throws:
java.io.IOException
-
writeShort
public void writeShort(short s) throws java.io.IOException- Throws:
java.io.IOException
-
writeString
public void writeString(java.lang.String s, int maxBytes) throws java.io.IOException- Throws:
java.io.IOException
-
writeUnsignedByte
public void writeUnsignedByte(int b) throws java.io.IOException- Throws:
java.io.IOException
-
writeUUID
public void writeUUID(java.util.UUID uuid) throws java.io.IOException- Throws:
java.io.IOException
-
writeVarInt
public void writeVarInt(int i) throws java.io.IOException- Throws:
java.io.IOException
-
writeVarLong
public void writeVarLong(long l) throws java.io.IOException- Throws:
java.io.IOException
-
-