public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(java.io.InputStream in,
java.io.OutputStream out) |
static byte[] |
getSecretBytes(int size) |
static boolean |
isEmpty(java.lang.String value) |
static byte[] |
join(byte[]... input) |
static java.lang.String |
readFully(java.io.InputStream in) |
static void |
readFully(java.io.InputStream in,
byte[] buffer) |
static void |
sleep(long millis) |
static byte[][] |
split(byte[] input,
int firstLength,
int secondLength) |
static int |
toIntExact(long value) |
static byte[] |
trim(byte[] input,
int length) |
static void |
wait(java.lang.Object lock,
long millis) |
public static byte[] join(byte[]... input)
public static byte[][] split(byte[] input,
int firstLength,
int secondLength)
public static byte[] trim(byte[] input,
int length)
public static boolean isEmpty(java.lang.String value)
public static byte[] getSecretBytes(int size)
public static java.lang.String readFully(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic static void readFully(java.io.InputStream in,
byte[] buffer)
throws java.io.IOException
java.io.IOExceptionpublic static void copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic static void sleep(long millis)
public static void wait(java.lang.Object lock,
long millis)
public static int toIntExact(long value)