public class URIPreEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
allowedChars |
Constructor and Description |
---|
URIPreEncoder() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encode(java.lang.String s) |
static java.net.URI |
encodeURI(java.lang.String s)
Create a new URI from a string, which may contain characters which should have been encoded.
|
public static final java.lang.String allowedChars
public static java.lang.String encode(java.lang.String s)
public static java.net.URI encodeURI(java.lang.String s) throws java.net.URISyntaxException
java.net.URISyntaxException
- If the string does not represent a valid URI, even after encoding.