net.fortytwo.ripple
Class StringUtils

java.lang.Object
  extended by net.fortytwo.ripple.StringUtils

public final class StringUtils
extends Object

Author:
Joshua Shinavier (http://fortytwo.net)

Method Summary
static String escapeString(String s)
           
static String escapeURIString(String s)
           
static String md5SumOf(String plaintext)
           
static String percentDecode(String s)
           
static String percentEncode(String s)
           
static String sha1SumOf(String plaintext)
           
static String unescapeString(String s)
           
static String unescapeUriString(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.