public class PathUtils extends Object
Constructor and Description |
---|
PathUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getTopNamespace(String path)
return the top namespace of a znode path
|
static String |
normalizeFileSystemPath(String path)
Convert Windows path to Unix
|
static void |
validatePath(String path)
Validate the provided znode path string
|
static void |
validatePath(String path,
boolean isSequential)
validate the provided znode path string
|
public static void validatePath(String path, boolean isSequential) throws IllegalArgumentException
path
- znode path stringisSequential
- if the path is being created
with a sequential flagIllegalArgumentException
- if the path is invalidpublic static void validatePath(String path) throws IllegalArgumentException
path
- znode path stringIllegalArgumentException
- if the path is invalidpublic static String normalizeFileSystemPath(String path)
path
- file pathCopyright © 2008–2023 The Apache Software Foundation. All rights reserved.