class Path implements IOReadableWritable, Serializable {

	public int depth() {
		String path = uri.getPath();
		int depth = 0;
		int slash = path.length() == 1 && path.charAt(0) == '/' ? -1 : 0;
		while (slash != -1) {
			depth++;
			slash = path.indexOf(SEPARATOR, slash + 1);
		}
		return depth;
	}

	public  Path();
	public  Path(URI uri);
	public  Path(String parent, String child);
	public  Path(Path parent, String child);
	public  Path(String parent, Path child);
	public  Path(Path parent, Path child);
	public  Path(String pathString);
	public  Path(String scheme, String authority, String path);

}