Package net.minecraft.server.rcon
Class NetworkDataOutputStream
java.lang.Object
net.minecraft.server.rcon.NetworkDataOutputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataOutputStream
private final ByteArrayOutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
reset()
byte[]
void
write
(int pData) Writes the given int to the output streamvoid
writeBytes
(byte[] pData) Writes the given byte array to the output streamvoid
writeFloat
(float pData) void
writeInt
(int pData) void
writeShort
(short pData) Writes the given short to the output streamvoid
writeString
(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()
-