Package org.apache.zookeeper.common
Class PathUtils
- java.lang.Object
- 
- org.apache.zookeeper.common.PathUtils
 
- 
 public class PathUtils extends Object Path related utilities
- 
- 
Constructor SummaryConstructors Constructor Description PathUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetTopNamespace(String path)return the top namespace of a znode pathstatic StringnormalizeFileSystemPath(String path)Convert Windows path to Unixstatic voidvalidatePath(String path)Validate the provided znode path stringstatic voidvalidatePath(String path, boolean isSequential)validate the provided znode path string
 
- 
- 
- 
Method Detail- 
validatePathpublic static void validatePath(String path, boolean isSequential) throws IllegalArgumentException validate the provided znode path string- Parameters:
- path- znode path string
- isSequential- if the path is being created with a sequential flag
- Throws:
- IllegalArgumentException- if the path is invalid
 
 - 
validatePathpublic static void validatePath(String path) throws IllegalArgumentException Validate the provided znode path string- Parameters:
- path- znode path string
- Throws:
- IllegalArgumentException- if the path is invalid
 
 - 
normalizeFileSystemPathpublic static String normalizeFileSystemPath(String path) Convert Windows path to Unix- Parameters:
- path- file path
- Returns:
- converted file path
 
 
- 
 
-