public class FileUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENCODED_PATH_SEPARATOR |
static String |
PATH_SEPARATOR |
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsReservedCharacter(String path,
char[] reserved)
Checks whether
path contains any of reserved . |
static String[] |
convertCommaSeparatedStringToArray(String stringToConvert) |
static String |
getParentPath(String path) |
static String |
idToPath(String pathId) |
static boolean |
isRootLevelPath(String path) |
static boolean |
isRootPath(String path) |
public static final String PATH_SEPARATOR
public static final String ENCODED_PATH_SEPARATOR
public static boolean containsReservedCharacter(String path, char[] reserved)
path
contains any of reserved
.path
- unix-style pathreserved
- array of reserved characterstrue
if any of reserved
is contained by path
public static String[] convertCommaSeparatedStringToArray(String stringToConvert)
public static boolean isRootPath(String path)
public static boolean isRootLevelPath(String path)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.