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