public class RandomUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static org.slf4j.Logger |
logger |
static int |
RANDOM_CODE_LENGTH |
protected static File |
tempDir |
Constructor and Description |
---|
RandomUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
createRandomId() |
static String |
createRandomId(int length) |
static File |
getCodeFile(File dir,
String fileNameFormat,
String code) |
static String |
getCodeFileName(String fileNameFormat,
String randomCode) |
static File |
getTempCodeFile(String fileNameFormat,
String randomCode) |
static File |
getTempDir() |
public static final String copyright
public static final int RANDOM_CODE_LENGTH
public static final org.slf4j.Logger logger
protected static final File tempDir