Package net.minecraft.server.rcon
Class NetworkDataOutputStream
java.lang.Object
net.minecraft.server.rcon.NetworkDataOutputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataOutputStreamprivate final ByteArrayOutputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreset()byte[]voidwrite(int pData) Writes the given int to the output streamvoidwriteBytes(byte[] pData) Writes the given byte array to the output streamvoidwriteFloat(float pData) voidwriteInt(int pData) voidwriteShort(short pData) Writes the given short to the output streamvoidwriteString(String pData) Writes the given String to the output stream
-
Field Details
-
outputStream
-
dataOutputStream
-
-
Constructor Details
-
NetworkDataOutputStream
public NetworkDataOutputStream(int pCapacity)
-
-
Method Details
-
writeBytes
Writes the given byte array to the output stream- Throws:
IOException
-
writeString
Writes the given String to the output stream- Throws:
IOException
-
write
Writes the given int to the output stream- Throws:
IOException
-
writeShort
Writes the given short to the output stream- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
toByteArray
public byte[] toByteArray() -
reset
public void reset()
-