public class URIUtil extends Object
UTF-8 encoding is used by default for % encoded characters. This may be overridden with the org.eclipse.jetty.util.URI.charset system property. see UrlEncoded
I2P modded from Jetty 8.1.15
| Constructor and Description |
|---|
URIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String | encodePath(String path)Encode a URI path. |
static StringBuilder | encodePath(StringBuilder buf,
String path)Encode a URI path. |
public static String encodePath(String path)
path - The path the encodepublic static StringBuilder encodePath(StringBuilder buf, String path)
Somewhat oddly, this encodes all chars >= 0x80 if buf is null, (strict RFC 2396) but only the control, space, and special chars if buf is non-null.
path - The path the encodebuf - StringBuilder to encode path into (or null)