Package org.apache.commons.vfs2.util
Class URIUtils
- java.lang.Object
-
- org.apache.commons.vfs2.util.URIUtils
-
public class URIUtils extends java.lang.Object
The URI escape and character encoding and decoding utility.This was forked from some needed methods such as
#encodePath(...)
inorg.apache.commons.httpclient.util.URIUtil
, in order to not be dependent on HttpClient v3 API, when generating and handlingGenericURLFileName
s, but it should work with any different HTTP backend provider implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
encodePath(java.lang.String unescaped)
Escape and encode a string regarded as the path component of an URI with the default protocol charset.static java.lang.String
encodePath(java.lang.String unescaped, java.lang.String charset)
Escape and encode a string regarded as the path component of an URI with a given charset.
-
-
-
Method Detail
-
encodePath
public static java.lang.String encodePath(java.lang.String unescaped)
Escape and encode a string regarded as the path component of an URI with the default protocol charset.- Parameters:
unescaped
- an unescaped string- Returns:
- the escaped string
-
encodePath
public static java.lang.String encodePath(java.lang.String unescaped, java.lang.String charset)
Escape and encode a string regarded as the path component of an URI with a given charset.- Parameters:
unescaped
- an unescaped stringcharset
- the charset- Returns:
- the escaped string
-
-