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 |
closeQuietly(FileInputStream fileInputStream)
Gracefully closes a fileInputStream
|
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) |
public static final String PATH_SEPARATOR
public static final String ENCODED_PATH_SEPARATOR
public static boolean closeQuietly(FileInputStream fileInputStream)
fileInputStream
- The FileInputStream
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 isRootLevelPath(String path)
Copyright © 2019 Hitachi Vantara. All rights reserved.