public class PathUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
driveLetterToLowerCase(java.lang.String path) |
static java.lang.String |
getCanonicalPath(java.lang.String path) |
static java.lang.String |
getFileExtension(java.lang.String name) |
static java.lang.String |
getFileName(java.lang.String path) |
static java.lang.String |
getJarPathForClass(java.lang.Class<?> aClass) |
static VirtualFile |
getLocalFile(VirtualFile file)
Deprecated.
use
VfsUtil.getLocalFile(VirtualFile) instead |
static java.lang.String |
getLocalPath(java.lang.String path) |
static java.lang.String |
getLocalPath(VirtualFile file) |
static java.lang.String |
getParentPath(java.lang.String path) |
static boolean |
isValidFileName(java.lang.String fileName) |
static boolean |
isValidFileName(java.lang.String fileName,
boolean strict) |
static java.lang.String |
makeFileName(java.lang.String name,
java.lang.String extension) |
static java.lang.String |
suggestFileName(java.lang.String text) |
static java.lang.String |
suggestFileName(java.lang.String text,
boolean allowDots,
boolean allowSpaces) |
static java.lang.String |
toPresentableUrl(java.lang.String url) |
static java.lang.String |
toSystemDependentName(java.lang.String path) |
static java.lang.String |
toSystemIndependentName(java.lang.String path) |
public static java.lang.String getLocalPath(VirtualFile file)
public static java.lang.String getLocalPath(java.lang.String path)
public static java.lang.String getJarPathForClass(java.lang.Class<?> aClass)
public static java.lang.String toPresentableUrl(java.lang.String url)
public static java.lang.String getCanonicalPath(java.lang.String path)
public static java.lang.String getFileName(java.lang.String path)
public static java.lang.String getFileExtension(java.lang.String name)
public static java.lang.String getParentPath(java.lang.String path)
public static java.lang.String suggestFileName(java.lang.String text)
public static java.lang.String suggestFileName(java.lang.String text, boolean allowDots, boolean allowSpaces)
public static boolean isValidFileName(java.lang.String fileName)
public static boolean isValidFileName(java.lang.String fileName, boolean strict)
public static java.lang.String toSystemIndependentName(java.lang.String path)
public static java.lang.String toSystemDependentName(java.lang.String path)
public static java.lang.String driveLetterToLowerCase(java.lang.String path)
public static java.lang.String makeFileName(java.lang.String name, java.lang.String extension)
@Deprecated public static VirtualFile getLocalFile(VirtualFile file)
VfsUtil.getLocalFile(VirtualFile)
instead