public final class SMBPathUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAbsolutePath(String path)
Checks if provided path string is an absolute path (i.e.
|
static boolean |
isFolder(String path)
Checks if the provided path string points to a folder (i.e.
|
static boolean |
isRelativePath(String path)
Checks if provided path string is a relative path (i.e.
|
static String |
mergePath(String[] components,
int start,
int end,
boolean absolute,
boolean folder)
Merges the provided path components into a single pat string.
|
static String[] |
splitPath(String path)
Splits the provided path string into its path components.
|
public static boolean isFolder(String path)
path - Path that should be checked.public static boolean isAbsolutePath(String path)
path - Path that should be checked.public static boolean isRelativePath(String path)
path - Path that should be checked.public static String[] splitPath(String path)
path - Path string that should be split.public static String mergePath(String[] components, int start, int end, boolean absolute, boolean folder)
components - Array of path components.start - Index of the first item in the list that should be considered; inclusive.end - Index of the last item in the list that should be considered; exclusive.absolute - Boolean indicating whether resulting path should be treated as absolute path.folder - Boolean indicating whether resulting path should point to a folder.Copyright © 2017 pontius software GmbH. All rights reserved.