public class GFLauncherUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
fileListToPathString(List<File> files) |
static String |
getCanonicalHostName()
Deprecated.
|
static File |
getInstallDir() |
static boolean |
isRelativePath(String path)
Makes an educated guess on whether an arbitrary string is a relative path.
|
static boolean |
isWindows() |
static boolean |
ok(String s) |
static String |
replace(String s,
String token,
String replace) |
static boolean |
safeExists(File f) |
static boolean |
safeIsDirectory(File f) |
static List<File> |
stringToFiles(String cp)
Convert a classpath like string, e.g.
|
public static boolean ok(String s)
public static boolean safeExists(File f)
public static boolean safeIsDirectory(File f)
public static File getInstallDir()
public static boolean isWindows()
@Deprecated public static String getCanonicalHostName() throws UnknownHostException
UnknownHostException
- so it can be handled on a case by case basispublic static boolean isRelativePath(String path)
path
- the path to checkpublic static List<File> stringToFiles(String cp)
cp
- The classpath-like stringCopyright © 2019. All rights reserved.