public class Uri extends Object
Constructor and Description |
---|
Uri() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeDisallowedChars(String s) |
static boolean |
hasFragmentId(String uri)
Tests whether a valid URI reference has a fragment identifier.
|
static boolean |
isAbsolute(String uri)
Tests whether a valid URI reference is absolute.
|
static boolean |
isValid(String s)
Tests whether a string is a valid URI reference.
|
static String |
resolve(String base,
String uriReference) |
public static boolean isValid(String s)
s
- the String to be testedpublic static boolean hasFragmentId(String uri)
uri
- the URI reference to be tested, must not be nullpublic static boolean isAbsolute(String uri)
uri
- the URI to be tested, must not be null