public final class PathSupport extends Object
PathSupport is a helper class to deal with filesystem paths.| Modifier and Type | Method and Description |
|---|---|
static String |
concat(String[] parts)
Deprecated.
Use Java's native
Paths.get(String, …).toFile()instead |
static String |
concat(String prefix,
String suffix)
Deprecated.
Use Java's native
Paths.get(String, …).toFile()instead |
static String |
path(String... parts)
Deprecated.
|
static String |
toSafeName(String fileName)
Returns the filename translated into a version that can safely be used as part of a file system path.
|
public static String toSafeName(String fileName)
fileName - The file name@Deprecated public static String concat(String prefix, String suffix)
Paths.get(String, …).toFile()instead
@Deprecated public static String concat(String[] parts)
Paths.get(String, …).toFile()instead
parts - the parts to concat@Deprecated public static String path(String... parts)
Copyright © 2009–2021 Opencast Project. All rights reserved.