Class SafeEncode
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.util.SafeEncode
-
public class SafeEncode extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
safeEncode(java.lang.String s)
Encodes the input string by translating special characters into escape sequences.
-
-
-
Method Detail
-
safeEncode
public static java.lang.String safeEncode(java.lang.String s) throws java.io.UnsupportedEncodingException
Encodes the input string by translating special characters into escape sequences. The resulting string is encoded according to the rules for URL encoding with the exception of the forward slashes and the colon, which are left as-is.- Parameters:
s
- A UTF-8 string.- Returns:
- The encoded string.
- Throws:
java.io.UnsupportedEncodingException
-
-