| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| public static final String | INVALID_SCHEME
URI Scheme used when relaxed parsing is enabled and the given input stream lead to an invalid URI. |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static URI | Returns: a URI instance, which may not correspond to the URI string if a valid URI string is not specified and relaxed parsing is enabled.a string representation of a URI. s)Attempts to create a URI instance and will optionally swallow any resulting URISyntaxException depending on
configured |
| public static String | |
| public static String |
| CID_PATTERN | back to summary |
|---|---|
| private static final Pattern CID_PATTERN | |
| INVALID_SCHEME | back to summary |
|---|---|
| public static final String INVALID_SCHEME URI Scheme used when relaxed parsing is enabled and the given input stream lead to an invalid URI. | |
| NOTES_CID_REPLACEMENT_PATTERN | back to summary |
|---|---|
| private static final Pattern NOTES_CID_REPLACEMENT_PATTERN | |
| Uris | back to summary |
|---|---|
| private Uris() Constructor made private to enforce static nature. | |
| create | back to summary |
|---|---|
| public static URI create(final String s) throws URISyntaxException Attempts to create a URI instance and will optionally swallow any resulting URISyntaxException depending on
configured When relaxed parsing is enabled and if the string representation is not valid, a second URI creation attempt is made by extracting the scheme from the scheme specific part and URI encoding that later part. For example, "mailto: joe [email protected]" becomes "mailto:joe%[email protected]".
If the second attempts also leads to a
| |
| decode | back to summary |
|---|---|
| public static String decode(final String s) Decodes the specified URI string using the UTF-8 charset. In the event that an exception is thrown, the specifed URI string is returned unmodified. | |
| encode | back to summary |
|---|---|
| public static String encode(final String s) Encodes the specified URI string using the UTF-8 charset. In the event that an exception is thrown, the specifed URI string is returned unmodified. | |