@Deprecated public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bytes(ByteBuffer buf)
Deprecated.
|
static boolean |
delete(File path)
Deprecated.
|
static int |
findOpenPort()
Deprecated.
|
static Address |
getPeerIpAddress(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(Class<T> klass,
T[] src,
int size,
boolean ended)
Deprecated.
|
static void |
unblockSocket(SelectableChannel... channels)
Deprecated.
|
public static int randomInt()
public static byte[] randomBytes(int length)
public static int findOpenPort()
throws IOException
IOExceptionpublic static void unblockSocket(SelectableChannel... channels) throws IOException
IOExceptionpublic static <T> T[] realloc(Class<T> klass, T[] src, int size, boolean ended)
public static byte[] bytes(ByteBuffer buf)
public static byte[] realloc(byte[] src,
int size)
public static boolean delete(File path)
public static Address getPeerIpAddress(SocketChannel fd)
Copyright © 2020. All rights reserved.