net.fortytwo.ripple
Class StringUtils
java.lang.Object
net.fortytwo.ripple.StringUtils
public final class StringUtils
- extends Object
- Author:
- Joshua Shinavier (http://fortytwo.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
escapeString
public static String escapeString(String s)
escapeURIString
public static String escapeURIString(String s)
unescapeString
public static String unescapeString(String s)
throws RippleException
- Throws:
RippleException
unescapeUriString
public static String unescapeUriString(String s)
throws RippleException
- Throws:
RippleException
percentEncode
public static String percentEncode(String s)
throws RippleException
- Parameters:
s - a string to encode. Uses the UTF-8 character set.
- Returns:
- percent-encoded (per RFC 3986) version of the string
- Throws:
RippleException - if encoding fails
percentDecode
public static String percentDecode(String s)
throws RippleException
- Parameters:
s - percent-encoded (per RFC 3986) string to decode. Uses the UTF-8 character set.
- Returns:
- the decoded string
- Throws:
RippleException - if decoding fails
sha1SumOf
public static String sha1SumOf(String plaintext)
throws RippleException
- Throws:
RippleException
md5SumOf
public static String md5SumOf(String plaintext)
throws RippleException
- Throws:
RippleException
Copyright © 2007-2014. All Rights Reserved.