public class FileNameUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Pattern |
FILE_NAME_WITH_COUNT |
private static Pattern |
RESERVED_WINDOWS_NAMES |
| Constructor and Description |
|---|
FileNameUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getNextUniqueName(Path path,
String name,
String extension) |
static Path |
getResourcePath(Path path,
String resourceName,
String extension) |
static boolean |
isAllowedName(Path path) |
static boolean |
isNormal(Path path) |
private static final Pattern FILE_NAME_WITH_COUNT
private static final Pattern RESERVED_WINDOWS_NAMES
@Environment(value=CLIENT) public static String getNextUniqueName(Path path, String name, String extension) throws IOException
IOExceptionpublic static boolean isNormal(Path path)
public static boolean isAllowedName(Path path)