@Deprecated
public class Utils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Utils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
bytes(java.nio.ByteBuffer buf)
Deprecated.
|
static boolean |
delete(java.io.File path)
Deprecated.
|
static int |
findOpenPort()
Deprecated.
|
static Address |
getPeerIpAddress(java.nio.channels.SocketChannel fd)
Deprecated.
|
static byte[] |
randomBytes(int length)
Deprecated.
|
static int |
randomInt()
Deprecated.
|
static byte[] |
realloc(byte[] src,
int size)
Deprecated.
|
static <T> T[] |
realloc(java.lang.Class<T> klass,
T[] src,
int size,
boolean ended)
Deprecated.
|
static void |
unblockSocket(java.nio.channels.SelectableChannel... channels)
Deprecated.
|
public static int randomInt()
public static byte[] randomBytes(int length)
public static int findOpenPort() throws java.io.IOException
java.io.IOException
public static void unblockSocket(java.nio.channels.SelectableChannel... channels) throws java.io.IOException
java.io.IOException
public static <T> T[] realloc(java.lang.Class<T> klass, T[] src, int size, boolean ended)
public static byte[] bytes(java.nio.ByteBuffer buf)
public static byte[] realloc(byte[] src, int size)
public static boolean delete(java.io.File path)
public static Address getPeerIpAddress(java.nio.channels.SocketChannel fd)