Returns true iff this URI's path component starts with a path segment (rather than the '/' segment delimiter). The path of an RFC 3986 URI is either empty, absolute (starts with the '/' segment delimiter) or rootless (starts with a path segment). For example, tel:+1-206-555-1212 , <
()
| 515 | * <p>Contrast rootless paths with absolute ones (see {@link #isPathAbsolute()}. |
| 516 | */ |
| 517 | public boolean isPathRootless() { |
| 518 | return !path.isEmpty() && !path.startsWith("/"); |
| 519 | } |
| 520 | |
| 521 | /** |
| 522 | * Returns true iff this URI's path component starts with the '/' segment delimiter (rather than a |