public static boolean isChildPath(String path,String parentPath){
  if (parentPath == null || path == null) {
    return false;
  }
  if (!path.startsWith(parentPath)) {
    return false;
  }
  if (!parentPath.endsWith(URI_PATH_CHAR) && !path.startsWith(URI_PATH_CHAR,parentPath.length())) {
    return false;
  }
  return true;
}

public static boolean isChildPath ( String path , String parentPath ) { if ( parentPath == null || path == null ) { return false ; } if ( ! path . startsWith ( parentPath ) ) { return false ; } if ( ! parentPath . endsWith ( URI_PATH_CHAR ) && ! path . startsWith ( URI_PATH_CHAR , parentPath . length ( ) ) ) { return false ; } return true ; }
determines whether the path represents a child path of the specified path . e . g . ischildpath ( " / x / y / z " , " / x / y " ) - > true ischildpath ( " y / z " , " y " ) - > true ischildpath ( " / x / y / z " , " / x / w " ) - > false ischildpath ( " y / z " , " / x / y " ) - > false ischildpath ( " / x / yy / z " , " / x / y " ) - > false
