public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
alphanumeric_both |
static String |
alphanumeric_lower |
Modifier and Type | Method and Description |
---|---|
static String |
getMimetype(String filename) |
static String |
randomString(int len)
Generates a lowercase alphanumeric random String.
|
static String |
randomString(int len,
String alphabet)
Generate a random string of length
len from the given
alphabet . |
static String |
timestampedId(int n)
Generates a (8+n) bit alphanumeric lowercase random ID.
|
static String |
timestampString()
Converts the current time in milliseconds to an 8-digit lowercase
alphanumeric String.
|
public static final String alphanumeric_lower
public static final String alphanumeric_both
public static String randomString(int len)
len
- length of String to be generatedpublic static String randomString(int len, String alphabet)
len
from the given
alphabet
.public static String timestampString()
public static String timestampedId(int n)
Copyright © 2014–2022 ImageJ. All rights reserved.