public interface NetOutput
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes the output.
|
void |
writeBoolean(boolean b)
Writes a boolean.
|
void |
writeByte(int b)
Writes a byte.
|
void |
writeBytes(byte[] b)
Writes a byte array.
|
void |
writeBytes(byte[] b,
int length)
Writes a byte array, using the given amount of bytes.
|
void |
writeChar(int c)
Writes a char.
|
void |
writeDouble(double d)
Writes a double.
|
void |
writeFloat(float f)
Writes a float.
|
void |
writeInt(int i)
Writes a integer.
|
void |
writeInts(int[] i)
Writes an int array.
|
void |
writeInts(int[] i,
int length)
Writes an int array, using the given amount of bytes.
|
void |
writeLong(long l)
Writes a long.
|
void |
writeLongs(long[] l)
Writes a long array.
|
void |
writeLongs(long[] l,
int length)
Writes a long array, using the given amount of bytes.
|
void |
writeShort(int s)
Writes a short.
|
void |
writeShorts(short[] s)
Writes a short array.
|
void |
writeShorts(short[] s,
int length)
Writes a short array, using the given amount of bytes.
|
void |
writeString(String s)
Writes a string.
|
void |
writeUUID(UUID uuid)
Writes a UUID.
|
void |
writeVarInt(int i)
Writes a varint.
|
void |
writeVarLong(long l)
Writes a varlong.
|
void writeBoolean(boolean b)
throws IOException
b - Boolean to write.IOException - If an I/O error occurs.void writeByte(int b)
throws IOException
b - Byte to write.IOException - If an I/O error occurs.void writeShort(int s)
throws IOException
s - Short to write.IOException - If an I/O error occurs.void writeChar(int c)
throws IOException
c - Char to write.IOException - If an I/O error occurs.void writeInt(int i)
throws IOException
i - Integer to write.IOException - If an I/O error occurs.void writeVarInt(int i)
throws IOException
i - Varint to write.IOException - If an I/O error occurs.void writeLong(long l)
throws IOException
l - Long to write.IOException - If an I/O error occurs.void writeVarLong(long l)
throws IOException
l - Varlong to write.IOException - If an I/O error occurs.void writeFloat(float f)
throws IOException
f - Float to write.IOException - If an I/O error occurs.void writeDouble(double d)
throws IOException
d - Double to write.IOException - If an I/O error occurs.void writeBytes(byte[] b)
throws IOException
b - Byte array to write.IOException - If an I/O error occurs.void writeBytes(byte[] b,
int length)
throws IOException
b - Byte array to write.length - Bytes to write.IOException - If an I/O error occurs.void writeShorts(short[] s)
throws IOException
s - Short array to write.IOException - If an I/O error occurs.void writeShorts(short[] s,
int length)
throws IOException
s - Short array to write.length - Shorts to write.IOException - If an I/O error occurs.void writeInts(int[] i)
throws IOException
i - Int array to write.IOException - If an I/O error occurs.void writeInts(int[] i,
int length)
throws IOException
i - Int array to write.length - Ints to write.IOException - If an I/O error occurs.void writeLongs(long[] l)
throws IOException
l - Long array to write.IOException - If an I/O error occurs.void writeLongs(long[] l,
int length)
throws IOException
l - Long array to write.length - Longs to write.IOException - If an I/O error occurs.void writeString(String s) throws IOException
s - String to write.IOException - If an I/O error occurs.void writeUUID(UUID uuid) throws IOException
uuid - UUID to write.IOException - If an I/O error occurs.void flush()
throws IOException
IOException - If an I/O error occurs.Copyright © 2021. All rights reserved.