public class MiscUtils
extends java.lang.Object
| Constructor and Description |
|---|
MiscUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getClassNumber(java.lang.String start,
java.lang.String ext)
Checks the file system to ensure it's a unique number
|
static java.lang.String |
getUniqueName(java.lang.String start,
java.lang.String ext)
Checks the file system to ensure it's a unique name
|
static java.lang.String |
randomString(int len)
Returns a random string without numbers
|
static java.lang.String |
randomStringNum(int len)
Returns a random string with numbers
|
public static java.lang.String randomString(int len)
len - the length of the Stringpublic static java.lang.String randomStringNum(int len)
len - the length of the Stringpublic static java.lang.String getUniqueName(java.lang.String start,
java.lang.String ext)
start - directory it'll be inext - the file extension it'll usepublic static int getClassNumber(java.lang.String start,
java.lang.String ext)
start - directory it'll be inext - the file extension it'll use