- humanReadableByteCount
Returns a human-readable version of the file size, where the input represents a
specific number of b
- closeQuietly
Unconditionally close a Socket. Equivalent to Socket#close(), except any
exceptions will be ignored.
- copy
Copy bytes from an InputStream to an OutputStream. This method buffers the input
internally, so ther
- readVarInt
Read a variable size integer.
- writeBytes
Write a byte array. This will first write the length as 4 bytes, and then the
actual bytes.
- writeVarInt
Write a variable size integer. Negative values need 5 bytes.
- readBytes
Read a byte array. This will first read the length as 4 bytes, and then the
actual bytes.
- readFully
Try to read the given number of bytes starting at the specified position into
the buffer. This metho
- readVarLong
Read a variable size long.
- readInt
Read an integer (4 bytes).
- skipFully
Skip a number of bytes in an input stream.
- writeInt
Write an integer (4 bytes).