com.jdroid.java.utils
Class EncodingUtils

java.lang.Object
  extended by com.jdroid.java.utils.EncodingUtils

public class EncodingUtils
extends Object


Field Summary
static String UTF8
           
 
Constructor Summary
EncodingUtils()
           
 
Method Summary
static String encodeURL(String s)
          Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTF8

public static final String UTF8
See Also:
Constant Field Values
Constructor Detail

EncodingUtils

public EncodingUtils()
Method Detail

encodeURL

public static String encodeURL(String s)
Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme. Leaves letters ("A-Z", "a-z"), numbers ("0-9"), and unreserved characters ("_-!.~'()*") intact.

Parameters:
s - string to encode
Returns:
an encoded version of s suitable for use as a URI component, or null if s is null


Copyright © 2014. All rights reserved.