public class PathUtils extends Object
Constructor and Description |
---|
PathUtils() |
Modifier and Type | Method and Description |
---|---|
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 invalidCopyright © 2008–2019 The Apache Software Foundation. All rights reserved.