public class Utils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Utils()
Default constructor for Utils.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkDirectoryExistsOrCreate(java.lang.String path)
Checks if a directory exists, and creates it if it doesn't exist.
|
static byte[] |
getBytes(java.nio.ByteBuffer buffer)
Converts a ByteBuffer to a byte array.
|
static boolean |
isNullOrEmpty(java.lang.String str)
Checks if a string is null or empty.
|
public static boolean isNullOrEmpty(java.lang.String str)
str - The string to checkpublic static byte[] getBytes(java.nio.ByteBuffer buffer)
buffer - The ByteBuffer to convertpublic static boolean checkDirectoryExistsOrCreate(java.lang.String path)
path - The directory path