public class ViewUtils extends Object
Constructor and Description |
---|
ViewUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
normalizeFile(String path,
String extension)
Returns a path that is converted to unix style file separators
and never starts with a "/".
|
static String |
normalizeFolder(String path)
Returns a path with unix style folder
separators that starts and ends with a "/".
|
@Nonnull public static String normalizeFolder(@Nullable String path)
path
- The path to normalizeFile@Nonnull public static String normalizeFile(@Nonnull String path, String extension)
path
- The path to normalizeFileextension
- The file extension