|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.utils.FilePath
public class FilePath
| Field Summary | |
|---|---|
static String |
CLASSPATH_SEPARATOR
Seperator of the classpath entries. |
| Constructor Summary | |
|---|---|
FilePath()
|
|
| Method Summary | |
|---|---|
static String |
concatPaths(String... paths)
Concats all paths sequentially together replacing all backslashes with slashes and watches out for ending of the path1 and beginning of path2 solving "//", "/./", etc. |
static String |
concatPaths(String path1,
String path2)
Concats path1 and path2 replacing all backslashes with slashes and watches out for ending of the path1 and beginning of path2 solving "//", "/./", etc. |
static void |
checkRelativePath(String path)
Checks the 'path' for the presence of ".." + can't start with "/" + enforces use of the ALLOWED_RELATIVE_PATH_CHARS. |
static void |
makeDirsToFile(File file)
Treats 'file' as something that points to the file and creates all parent dirs. |
static String |
makeUniform(String file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASSPATH_SEPARATOR
| Constructor Detail |
|---|
public FilePath()
| Method Detail |
|---|
public static void checkRelativePath(String path)
ALLOWED_RELATIVE_PATH_CHARS.
path - public static void makeDirsToFile(File file)
file - public static String concatPaths(String... paths)
paths -
public static String concatPaths(String path1,
String path2)
path1 - path2 -
public static String makeUniform(String file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||